RE: Regarding linkup traps
"Ravi S M" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <1BC030D8DE6BC042B3F33EE14CA2B8FA05432437@SINPUNEX002.TechMahindra.com> |
Hi Dave Thanks Yes I am using 5.3.1 version only. But I am monitoring only one process. I will put that one more monitor line and let you know. Regards Ravi -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: Tuesday, October 17, 2006 1:25 PM To: Ravi S M Cc: net-snmp-users Subject: Re: Regarding linkup traps On 17/10/06, Ravi S M <[email protected]> wrote: > I am getting traps when my monitored process goes down, but when it comes up > the traps are not generated. My "snmpd.conf" looks like this > monitor ..... "Process named" prErrorFlag.1 != 0 That is correct. This monitor line will trigger (and generate a trap) when the condition is matched, i.e. the prErrorFlag goes from 0 to non-0. When the condition is cleared (goes from non-0 to 0), then this re-arms the trigger so it's ready to fire again. But it does *not* "reverse-fire" the trigger, to generate another trap. The easiest way to do this would probably be to have a parallel monitor line, with the same test in reverse: monitor -u myuser -r 10 -i -o prNames.1 -o prErrMessage.1 "Process named OK" prErrorFlag.1 == 0 Also note that if you're using the 5.3.x line (or the upcoming 5.4 code), you can use a single "monitor" line to handle *all* your "proc" entries: monitor -u myuser -r 10 -o prNames -o prErrMessage "Processes" prErrorFlag != 0 You don't have to have a separate monitor line for each "proc" entry. This didn't work reliably in the earlier releases, but does with 5.3 and above. Dave ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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 ============================================================================================================================ Tech Mahindra, formerly Mahindra-British Telecom. Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra. ============================================================================================================================ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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