I am using Net-SNMP 5.1.1 on Red Hat Linux 9 with embedded perl turned on;
However, I am unable to get the agent to invoke the perl initialization script '/usr/local/share/snmp/snmp_perl.pl'.


1) net-snmp-config --configure-options comes back with all the correct settings:
'--prefix=/usr/local' '--with-mib-modules=host mibII/mta_sendmail misc/ipfwacc tunnel' '--with-default-snmp-version=2' '[EMAIL PROTECTED]' '--with-sys-location=Unknown' '--with-logfile=/var/log/snmpd.log' '--with-persistent-directory=/var/net-snmp' '--with-perl-modules' *'*--enable-embedded-perl*' *'--enable-shared'


2) For purposes of testing I have appended the following line to the default script snmp_perl.pl:

print "Hello World";
It seems that with or without a /usr/local/share/snmp/snmpd.conf entry set to "perlInitFile=/usr/local/share/snmp/snmp_perl.pl" and a snmpd restart, nothing is being dumped to stdout or /var/log/snmpd.log after startup.


3) Additionally adding the line: perl print "Hello World"; to snmpd.conf is not yielding any visible output to stdout or logs.

Is there any configuration setting I must be aware of to get the initialization to
script be successfully invoked?


Any help would be appreciated.

-- Keith


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to