Thanks, guys. :) I see my mistake. I had the host IP listed twice.
Eric Chatham Broadvox MIS Department (216) 373-4683 [email protected] -----Original Message----- From: Marc Powell [mailto:[email protected]] Sent: Thursday, February 26, 2009 17:44 To: Nagios Users Mailinglist Subject: Re: [Nagios-users] Problems with check_snmp add-on 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 [email protected] 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 CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient. ------------------------------------------------------------------------------ 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 [email protected] 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
