Problems with check_snmp add-on

Marc Powell marc at ena.com
Thu Feb 26 23:43:32 CET 2009


On Feb 26, 2009, at 3:55 PM, Eric Chatham wrote:

> I got the Adtran to work with snmpwalk and get.  I would like to  
> monitor "ifOperStatus.1," which is the status on interface 1.  I  
> created this command & service

>        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$  
> -o $ARG2$ -c $ARG3$

>        check_command                   check_snmp_interface!<ip  
> host>!<com string ro>!ifOperStatus.1!1:1

$ARG1$ = <ip host>
$ARG2$ = <com string ro>
$ARG3$ = ifOperStatus.1
$ARG4$ = 1:1

Your command_line therefor looks like

/path/to/plugins/check_snmp -H <address from host definition> -C <ip  
host> -o <com string ro> -c ifOperStatus.1

> When I add the service into Nagios, I keep getting "check_snmp:  
> Invalid critical threshold - ifOperStatus.1"
>
> When I run the "check_snmp" plugin, I don't have any problems.
>
> [root@ ~ libexec]# ./check_snmp -H <ip host> -C <com string ro> -o  
> ifOperStatus.1 -c 1:1
> SNMP CRITICAL - *2* | IF-MIB::ifOperStatus.1=2

Looks different.

--
Marc


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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