Radek Vokál wrote: > I've tried to run sample perl module from > > http://net-snmp.sourceforge.net/tutorial/tutorial-5/toolkit/perl/perl_module.pl > > I've also modified the snmpd.conf to load the module > > # head /etc/snmp/snmpd.conf > perl do "/etc/snmp/perl_module/pl"; > > snmpd doesn't display any error, so I guess it's loaded ..
Do the following: kill/stop snmpd (if running as daemon), open a shell/xterm/etc and run snmpd in foreground: $ snmpd -f -Lsd -Lf /var/log/snmpd.log -p /var/run/snmpd -a Now you should see messages like: "starting perl_module.pl perl_module.pl loaded ok" In general your perl module can write to STDERR and it will be dumped into the former shell so it is a quick method for debugging. Note also that when you modify the module snmpd should be restarted, so you simply go to the shell, hit ctrl-c, and launch snmpd (in foreground) again. Regards, -Roman ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
