<br><font size=2 face="sans-serif">thanks a ton thomas !!!<br></font><img src=cid:_1_089298F008933D2C003A36F465257450><br><br><br><table width=100%><tr valign=top><td width=40%><font size=1 face="sans-serif"><b>Thomas Guyot-Sionnest <dermoth@aei.ca></b></font><p><font size=1 face="sans-serif">05/21/2008 03:18 PM</font><td width=59%><table width=100%><tr valign=top><td><div align=right><font size=1 face="sans-serif">To</font></div><td><font size=1 face="sans-serif">Pallav.S.Gupta@relianceada.com</font><tr valign=top><td><div align=right><font size=1 face="sans-serif">cc</font></div><td><font size=1 face="sans-serif">nagios-users@lists.sourceforge.net</font><tr valign=top><td><div align=right><font size=1 face="sans-serif">Subject</font></div><td><font size=1 face="sans-serif">Re: [Nagios-users] Strange problem with
nagios 3.0 for network device monitoring</font></table><br><table><tr valign=top><td><td></table><br></table><br><br><br><tt><font size=2>-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>On 21/05/08 03:59 AM, Pallav.S.Gupta@relianceada.com wrote:<br>> <br>> Dear List<br>> <br>> I am using nagios 3.0 in Ubuntu 7.10 .To monitor a router with snmp<br>> command i am using the following command<br>> <br>> define service{<br>>                 use  
                     
                     
   <br>> generic-service                
; Inherit values from a template<br>>                 host_name
                     
                     
 <br>>     mumbai-gw1<br>>                 service_description
                Port 1 Link Status<br>>                 check_command
                     
         <br>>  check_snmp!-C public -o ifOperStatus.1,ifAdminStatus.1 -r 1
-m RFC1213-MIB<br>>                 }<br>> <br>> The port is up but still it returns Critical state rather than showing<br>> OK state .If i eliminate the -r 1 then it only gives me the info about<br>> port status. But i need to get notified when port admin status is
not<br>> equal to operational status.<br>> <br>> So is there any way out for this problem.<br><br>You probably want to use -w and/or -c for the thresholds. i,e,<br><br>- -c 1,1<br><br>Will return critical is any of the polled values isn't equal to 1<br><br>However if you want to alert only if they aren't equal then you'll need<br>something else... You can write your own plugin, but you could probably<br>achieve what you want with service dependencies.<br><br>I.e. set a service for one OID (AdminStatus I think) that doesn't sent<br>notifications (notification_interval none) and make a 2nd service for<br>the other OID that is dependent on the first one. Whenever you put an<br>interface down it will cause the 1st service to go down (without<br>notification) and the dependency will prevent alerts from the 2nd service.<br><br>Thomas<br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.6 (GNU/Linux)<br>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org<br><br>iD8DBQFIM/AF6dZ+Kt5BchYRAiWXAKDpIJvND/VyvGZNGLeCTx64I7uGQwCfdImt<br>gyMv8OInSg8SQZ5NTYo3Uxg=<br>=ROmr<br>-----END PGP SIGNATURE-----<br></font></tt><br><BR>
<BR>
<BR>
The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email.<BR>