Hi everyone, I'm very new to SNMP, Net-SNMP, and the field in general, so please have patience if there is an obvious fix to this.
I'm trying to configure an extend directive in the net-snmp/27/snmpd.conf file; I've set it up thus: extend classmonitor /tmp/classmonitor.sh I'm just having the script be a simple echo at this point to rule out any script errors. It looks like: #!/bin/bash echo Test After restarting the daemon with a sudo snap restart net-snmp, the output of the snmpwalk for 1.3.6.1.4.1.8072.1.3.2 has the nsExtendOutFull line show an empty string, and nsExtendResult gives an exit code of 1. The nsExtendCommand line, however, points correctly to /tmp/classmonitor.sh. It seems like the daemon is somehow not able to get to the file or its output, but the permissions for reading/executing the file and directory align with what I have set for the user. Doing a su with the user running the daemon also shows that the script outputs fine into the terminal when run by itself. Any troubleshooting would be much appreciated. Thanks! -AH D'YOUVILLE CONFIDENTIALITY NOTICE: This communication, including any attachments, may contain sensitive and/or confidential information and is intended only for the individual or entity to which it is addressed. Any unauthorized review, dissemination, distribution, or copying of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and delete and destroy all copies of the original message.
_______________________________________________ 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