extend and monitor
David Juran <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <1215683815.5235.4.camel@dhcppc2> |
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 ------------------------------------------------------------------------- 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
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBIddzn0Z3pChMh0UURAvHMAJ9L1uLFNA6b1tz5GVZV3zSBtagvbACgg1yk BhRuUeOjDkImFMxy5AqyANg= =9YYr -----END PGP SIGNATURE-----