Strange problem with nagios 3.0 for network device monitoring

Pallav.S.Gupta at relianceada.com Pallav.S.Gupta at relianceada.com
Wed May 21 12:36:39 CEST 2008


thanks a ton thomas !!!




Thomas Guyot-Sionnest <dermoth at aei.ca> 
05/21/2008 03:18 PM

To
Pallav.S.Gupta at relianceada.com
cc
nagios-users at lists.sourceforge.net
Subject
Re: [Nagios-users] Strange problem with nagios 3.0 for network device 
monitoring






-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 21/05/08 03:59 AM, Pallav.S.Gupta at relianceada.com wrote:
> 
> Dear List
> 
> I am using nagios 3.0 in Ubuntu 7.10 .To monitor a router with snmp
> command i am using the following command
> 
> define service{
>                 use 
> generic-service                 ; Inherit values from a template
>                 host_name 
>     mumbai-gw1
>                 service_description                 Port 1 Link Status
>                 check_command 
>  check_snmp!-C public -o ifOperStatus.1,ifAdminStatus.1 -r 1 -m 
RFC1213-MIB
>                 }
> 
> The port is up but still it returns Critical state rather than showing
> OK state .If i eliminate the -r 1 then it only gives me the info about
> port status. But i need to get notified when port admin status is not
> equal to operational status.
> 
> So is there any way out for this problem.

You probably want to use -w and/or -c for the thresholds. i,e,

- -c 1,1

Will return critical is any of the polled values isn't equal to 1

However if you want to alert only if they aren't equal then you'll need
something else... You can write your own plugin, but you could probably
achieve what you want with service dependencies.

I.e. set a service for one OID (AdminStatus I think) that doesn't sent
notifications (notification_interval none) and make a 2nd service for
the other OID that is dependent on the first one. Whenever you put an
interface down it will cause the 1st service to go down (without
notification) and the dependency will prevent alerts from the 2nd service.

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIM/AF6dZ+Kt5BchYRAiWXAKDpIJvND/VyvGZNGLeCTx64I7uGQwCfdImt
gyMv8OInSg8SQZ5NTYo3Uxg=
=ROmr
-----END PGP SIGNATURE-----





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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080521/de9a04cc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 6675 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080521/de9a04cc/attachment.gif>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list