Hello.

I'm trying to get snmpd to on regular intervals run a script and based
on it's return value send a trap. So I set up the following lines
in /etc/snmp/snmpd.conf

extend testing /tmp/traptest.sh
createUser    _internal MD5 "authpassphrase"
iquerySecName _internal
rouser        _internal
monitor -r 6 foo NET-SNMP-EXTEND-MIB::nsExtendResult."testing" != 0
trap2sink localhost

As expected, /tmp/traptest.sh is ran every 6 seconds, but I don't get
any traps no matter what return value is returned.

In contrast, if I instead of "extend" use the deprecated "exec" and
then 
monitor -r 6 extTable extResult != 0
I do get the expected trap. 

Does anyone have a clue what I'm doing wrong? I'm using net-snmp-5.4.1

-- 
David Juran
Sr. Consultant
Red Hat
+358-504-146348

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
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

Reply via email to