[Nagiosplug-help] check_snmp wierdness

Jon Angliss jon at netdork.net
Sun Nov 2 06:29:06 CET 2008


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

On Fri, 24 Oct 2008 10:01:45 -0400, "Peter Pauly" <ppauly-
Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:

>I'm using check_snmp to check the status of the interfaces on Cisco
>routers, and for the most part, it is working well. However, I have
>one interface that Nagios is reporting as down, despite the fact that:
>
>1. Running check_snmp by hand shows the interface is up:
>
>/usr/lib/nagios/plugins/check_snmp -H xx.xx.xx.xx -C xxxxxxx -o
>ifOperStatus.21 -r 1 -m RFC1213-MIB
>SNMP OK - up(1) | RFC1213-MIB::ifOperStatus.21=up(1)
>
>2. The router being checked shows the interface is up (via cisco commands)
>
>3. Running snmpwalk and dumping the whole shebang shows the interface is up.
>
>My environment is:
>Nagios 3.0.2 from the packages
>Ubuntu 8.10
>
>I'd rather not install Nagios 3.04 from tar. When you have to
>administer 100 servers, you try to keep things as simple as possible
>;).
>
>The definition for the failing check is:
>
>define service{
>use generic-service
>host_name xxxxxx
>service_description xxxxxxxxx
>check_command check_snmp!-C xxxxxxx -o
>ifOperStatus.21 -r 1 -m RFC1213-MIB
>contact_groups xxxxx,yyyyyy
>}
>
>which, except for the interface number "21", is the same as all of the
>working ones.

What's nagios actually showing as the output?  Have you tried using
the OID instead of the name?  What do the logs report? Have you tried
turning up the debugging?

- -- 
Jon Angliss

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkkNOpkACgkQK4PoFPj9H3PigQCdHPoZx6cjM/xIVBZ9fYmip3p8
DgcAn0bWjaLuyxQ7CwduuLqJgDxTZGRA
=FSY2
-----END PGP SIGNATURE-----





More information about the Help mailing list