Re: extend monitor and trap problem
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 13/09/06, [email protected] <[email protected]> wrote: > At the moment I'm interested in using extend/monitor directives in > snmpd.conf to send a trap. > extend mytest /bin/sh /home/alberto/mytest > monitor -u pippo -r 3 mymon nsExtendResult.\"mytest\" != 0 > trace: mteTrigger_run(): disman/event/mteTrigger.c, 548: > disman:event:trigger:fire: Returned non-integer result(s): NET-SNMP- > EXTEND-MIB::nsExtendResult."mytest" (boolean/threshold) 0 > > Here I have a 'type error' on nsExtendResult, that I suppose is the > cause af the missing trap, > while from the walk above the same OID is identified as INTEGER. > > I would be happy if someone could tell me what's wrong! Sorry for the delay in responding. This is an interesting problem. It turns out that the cause is a combination of a minor "error" in your monitor line, and/or insufficienty robust checking in the code that implements this functionality. The "monitor" line is primarily intended for watching a *group* of MIB instances, and triggering a trap whenever any one of them triggers the specified test. So one option would be to use a config directive such as: monitor -u pippo -r 3 mymon nsExtendResult != 0 If you specifically want to monitor this one single instance, then there's a flag to indicate this: monitor -I -u pippo -r 3 mymon nsExtendResult.\"mytest\" != 0 Either of these lines should work properly. The problem here was that the agent was working with the results of GETNEXT nsExtendResult.\"mytest\" - which refers to a completely different object altogether. This is something that needs to be fixed. But the suggestions above should provide a workaround in the meantime. Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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