Problem with check_snmp plugin

Gerald gcoon at inch.com
Thu Jan 16 15:19:14 CET 2003


This is how I would suggest to set up the command:

# $ARG1$ is disk Partition number to be added to OID.
# $ARG2$:$ARG3$ is warning threshold MIN:MAX in Kb
# $ARG4$:$ARG5$ is critical threshold MIN:MAX in Kb
command[check_snmp_disk]=$USER1$/check_snmp -H $HOSTADDRESS$ -C
community_name -o enterprises.ucdavis.dskTable.dskEntry.dskAvail.$ARG1$ -w
$ARG2$:$ARG3$ -c $ARG4$:$ARG5$

It takes a little more to add the machines since you have to know the
thresholds you want, but it makes for realistic paging during an outage
instead of generic percentages across a machine.

Gerald

On Thu, 16 Jan 2003, [iso-8859-1] Steve Dussaux wrote:

> I have 2 services using the check_snmp plugin.
> One service work quite well (network usage).
> But i have problems with my other service that check disk usage on Win2K.
>
> I have manually test the check_snmp :
>
> check_snmp -H 10.1.6.250 -o .1.3.6.1.2.25.2.3.1.6.2 -C public -m ALL
> The command returns this line :
> SNMP OK - 652730
>
> for my network usage service i have this :
> check_snmp -H 10.1.6.250 -o .1.3.6.1.2.1.2.2.1.10.16777219 -C public -m ALL
> The command returns this line :
> SNMP OK - Counter32:5656236
>
> I think the problem is that Nagios parses the result of the check_snmp command and search for
> Counter32.
> How can i do to solve this problem ?
>
> Steve
>
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by: Thawte.com
> Understand how to protect your customers personal information by implementing
> SSL on your Apache Web Server. Click here to get our FREE Thawte Apache
> Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>


-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en




More information about the Users mailing list