[Nagiosplug-help] nagios/plugins/check_snmp syntax

Smirnoff Alexander asmirnoff at office.beeline.ru
Mon Sep 15 08:25:08 CEST 2008


command-plugins.cfg:
command[check_p86_ring]=/usr/lib/nagios/plugins/check_snmp -H
$HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.2272.1.42.5.1.2.$ARG2$ -P 2c -c
1:2 -w 0:1

p8606-gag1.cfg:
define service{
        use                             p8606gag-if
        service_description             RING RPR246-1:
        check_command                   check_p86_ring!public!1!
}

-----Original Message-----
From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca] 
Sent: Saturday, September 13, 2008 5:34 PM
To: Smirnoff Alexander
Cc: nagiosplug-help at lists.sourceforge.net.
Subject: Re: [Nagiosplug-help] nagios/plugins/check_snmp syntax

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

On 12/09/08 07:17 AM, Smirnoff Alexander wrote:
> Thanks a lot! Check_snmp now make correct output:
> 
> [root at spbmon asmirnov]# /usr/lib/nagios/plugins/check_snmp -H p8610 -C
> public -o 1.3.6.1.4.1.2272.1.42.5.1.2.4 -P 2c -c 1:2 -w 0:1
> SNMP WARNING - *2* | iso.3.6.1.4.1.2272.1.42.5.1.2.4=2
> 
> , but after nagios restart services again maked incorrect:
> 
> [09-12-2008 14:17:40] SERVICE ALERT:
> p8606;RPR248-1:;CRITICAL;HARD;1;SNMP CRITICAL - *2*
> 
> SNMP CRITICAL instead of SNMP WARNING.

Can you show me your service and check command definitions?

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

iD8DBQFIy8Fk6dZ+Kt5BchYRAlJzAJ9iELjGbAahdD43Fyr+V2qgHTlSzQCgyTkX
NONGuo5QKf1/dKYgT7nv/n4=
=8Ukc
-----END PGP SIGNATURE-----




More information about the Help mailing list