RE: Regarding linkup traps
James Mckenzie <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <13213632.1161145930272.JavaMail.root@elwamui-hound.atl.sa.earthlink.net> |
Ravi: You are very welcome. I have just repeated information that I received from this list. James McKenzie -----Original Message----- >From: Ravi S M <[email protected]> >Sent: Oct 17, 2006 9:29 PM >To: Dave Shield <[email protected]> >Cc: net-snmp-users <[email protected]> >Subject: RE: Regarding linkup traps > > >Hi Dave > >Linkup trap works fine, thanks a lot for your support. > >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 ------------------------------------------------------------------------- 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