Re: Regarding linkup traps

James Mckenzie <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <20058764.1161097122555.JavaMail.root@elwamui-wigeon.atl.sa.earthlink.net>
-----Original Message-----
>From: Ravi S M <[email protected]>
>Sent: Oct 17, 2006 12:40 AM
>To: net-snmp-users <[email protected]>
>Subject: Regarding linkup traps
>
>
>Hi All
>
> 
>
>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 -u myuser -r 10 -i -o prNames.1 -o prErrMessage.1 "Process
>named" prErrorFlag.1 != 0
>
>For this am getting traps.
>
>For linkup am not getting traps.
>
This is because the line will only monitor if the process fails.  I have found, through experience, that you will need two monitor lines.  One to monitor if the process fails, which you already have and one to monitor when the system process comes back to normal.  This will require that you change the condition at the end of the line from != to ==.  Your new monitor line will look like this:

monitor -u myuser -r 10 -i -o prNames -o prErrMessage "Process named" prErrorFlag == 0

If you are using NetSNMP 5.3.1 or higher, there is no more need to list per process.  

I am working with Dave on a fix for the iqueryName problem.

James McKenzie



-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.