Re: How can I test perl modules?

Radek Vokál <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Tue, 2005-10-18 at 15:46 +0200, Thomas Anders wrote:
> Radek Vokál wrote:
> at's exactly what I would love to see but still I don't get any line
> > that the module is loaded
> > 
> > root@garfield ~#  snmpd -f -Lsd -Lf /var/log/snmpd.log -p /var/run/snmpd
> 
> Run with "-Dread_config -Dperl".
> 
> 

So it seems that it finds the module, reads it, but it's still not
loaded!

too many sensors. ignoring serial16
read_config: reading premib configuration tokens
read_config: config path
used: /etc/snmp:/usr/share/snmp:/usr/lib/snmp:/root/.snmp:/var/net-snmp
read_config: Reading configuration /etc/snmp/snmpd.conf
read_config: /etc/snmp/snmpd.conf:1 examining: perl do
"/etc/snmp/perl_module.pl";
read_config: /etc/snmp/snmpd.conf:7 examining: com2sec notConfigUser
localhost       public
read_config: /etc/snmp/snmpd.conf:13 examining: group   notConfigGroup
v1           notConfigUser
read_config: /etc/snmp/snmpd.conf:14 examining: group   notConfigGroup
v2c           notConfigUser
read_config: /etc/snmp/snmpd.conf:21 examining: view    systemview
included   .1
read_config: /etc/snmp/snmpd.conf:28 examining: access  notConfigGroup
""      any       noauth    exact  systemview none
noneread_config: /etc/snmp/snmpd.conf:31 examining: master agentx
read_config: /etc/snmp/snmpd.conf:36 examining: proc    /usr/sbin/sshd
1 1
read_config: /etc/snmp/snmpd.conf:38 examining: proc    sshd  15 0
...
read_config: /var/net-snmp/snmpd.conf:32 examining: setserialno
276820568
read_config: /var/net-snmp/snmpd.conf:33 examining: engineBoots 196
read_config: /var/net-snmp/snmpd.conf:34 examining: oldEngineID
0x80001f8880baed375b31a06c42
read_config: Found a parser.  Calling it: oldEngineID /
0x80001f8880baed375b31a06c42
read_config: /var/net-snmp/snmpd.local.conf: No such file or directory
read_config: config path
used: /etc/snmp:/usr/share/snmp:/usr/lib/snmp:/root/.snmp:/var/net-snmp
...
read_config: reading normal configuration tokens
read_config: config path
used: /etc/snmp:/usr/share/snmp:/usr/lib/snmp:/root/.snmp:/var/net-snmp
read_config: Reading configuration /etc/snmp/snmpd.conf
read_config: /etc/snmp/snmpd.conf:1 examining: perl do
"/etc/snmp/perl_module.pl";
read_config: Found a parser.  Calling it: perl / do
"/etc/snmp/perl_module.pl";
perl: initializing perl (/usr/share/snmp/snmp_perl.pl)
Turning on AgentX master support.
NET-SNMP version 5.2.2.rc1
Received TERM or STOP signal...  shutting down...


-- 
Radek Vokál <[email protected]>
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBDVP44pPtjDwJDWJMRAj9/AKC/meZ+qr4JF84+mYZ2+RFJoHN/+QCdFydc
f6OS4O27utYFo8f8pYKndV4=
=I7Ft
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.