check_snmp (External Command Error)

Davey, Jatin Kumar (Jatin Kumar) jatin_kumar.davey at alcatel-lucent.com
Wed Mar 21 06:45:18 CET 2012


Ok , Thanks.

For the benefit of all I did two changes and it worked.

Change 1:
Mentioned the full OID as mentioned by Werner.

Change 2:

Instead of using the $HOSTADDRESS$ , I used $ARG1$

Thanks
Jatin

________________________________
From: Werner, Robert [mailto:RWerner at pomwonderful.com]
Sent: Tuesday, March 20, 2012 11:02 PM
To: Nagios Users List
Subject: Re: [Nagios-users] check_snmp (External Command Error)

I think your OID needs to be all numerical.  (translate iso into the numerical prefix).

--
Robert G. Werner
Oracle Apps Systems Administrator
rwerner at pomwonderful.com
559.521.5089

From: Davey, Jatin Kumar (Jatin Kumar) [mailto:jatin_kumar.davey at alcatel-lucent.com]
Sent: Tuesday, March 20, 2012 5:54 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_snmp (External Command Error)

Hi All

I have the latest stable version of Nagios Core and Nagios Plugins installed in a CentOS 6.2 machine. While using the check_snmp in my object files I am getting the following error in the UI:

External command error: snmp_build: unknown failuresnmpget: Error building ASN.1 representation (Can't build OID for variable)

Text in the host file where I have defined the service is:

define service{

        host_name               Dslam-XXX
        service_description     XXXX:1-1-5-1
        check_command           check_xdsl_line!x.x.x.x!iso.3.6.1.2.1.2.2.1.8.134610945!xxx
        max_check_attempts      5
        check_interval          1
        retry_interval          3
        check_period            24x7
        notification_interval   30
        notification_period     24x7
        contact_groups          admins
        }

Text in the commands file for the above used custom command is:

define command{
        command_name    check_xdsl_line
        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ -c 1
        }


Please let me know how to solve this issue.

Thanks
Jatin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120321/45448372/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
-------------- next part --------------
_______________________________________________
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