Problems with check_snmp add-on

Eric Chatham echatham at broadvox.net
Thu Feb 26 22:55:53 CET 2009


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

# 'check_snmp_interface' command defintion
define command {
        command_name    check_snmp_interface
        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o $ARG2$ -c $ARG3$
        }

define service{
        host_name                       reach_media
        service_description             INT1
        check_command                   check_snmp_interface!<ip host>!<com string ro>!ifOperStatus.1!1:1
        max_check_attempts              3
        normal_check_interval           1
        check_period                    24x7

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
[root@ ~ libexec]#

Why won't it work on the Nagios webpage?


Eric Chatham
Broadvox MIS Department
(216) 373-4683
echatham at broadvox.net


-----Original Message-----
From: Eric Chatham [mailto:echatham at broadvox.net]
Sent: Thursday, February 26, 2009 12:59
To: Lee Azzarello; Nagios Users Mailinglist
Subject: Re: [Nagios-users] Problems with check_snmp add-on

[root@ ~ libexec]# snmpget -v1 -c <string read-only> <ip host> .1.3.6.1.4.1.664.3.1.1
Timeout: No Response from <ip host>.
[root@ ~ libexec]#

I took an ethereal capture as well.  After looking at it, it looks like the destination host may not be accepting SNMP traffic.  Is UDP 161 default for SNMP?

[root@ ~ libexec]# tethereal ip host <ip host>
Running as user "root" and group "root". This could be dangerous.
Capturing on eth0
  0.000000 <source ip> -> <ip host> SNMP get-request SNMPv2-SMI::enterprises.664.3.1.1
  0.049775 <ip host> -> <source ip> ICMP Destination unreachable (Port unreachable)
  1.000719 <source ip> -> <ip host> SNMP get-request SNMPv2-SMI::enterprises.664.3.1.1
.
.
12 packets captured
[root@ ~ libexec]#

Eric Chatham
Broadvox MIS Department
(216) 373-4683
echatham at broadvox.net

-----Original Message-----
From: Lee Azzarello [mailto:lee at dropio.com]
Sent: Thursday, February 26, 2009 11:59
To: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Problems with check_snmp add-on

On Thu, Feb 26, 2009 at 11:02 AM, Eric Chatham <echatham at broadvox.net> wrote:
> Hello,
>
>
>
> I am trying to run the check_snmp add-on to retrieve the product name of an
> Adtran.  I have the community string and the MIBs loaded.  When I run the
> following command, I get "No data received from host."  What am I doing
> wrong?  Thank you for your assistance.
>
>
>
> [root@ ~ libexec]# snmptranslate -m +ADTRAN-MIB -IR -On adProdName
>
> .1.3.6.1.4.1.664.3.1.1
> [root@~  libexec]# ./check_snmp -H <ip address> -C <string read-only> -o
> .1.3.6.1.4.1.664.3.1.1
>
> SNMP problem - No data received from host
>
> CMD: /usr/local/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] <ip address>
> .1.3.6.1.4.1.664.3.1.1

What happens when you run snmpget manually? Does it return the value expected?

-lee

------------------------------------------------------------------------------
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

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
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

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
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