[Nagiosplug-devel] check_snmp OID numbers limited?

Bret Cason Bret_Cason at symantec.com
Fri Jul 9 17:10:14 CEST 2010


>From the Nagios Plugins check_snmp documentation: 

 

Notes:

 - Multiple OIDs may be indicated by a comma- or space-delimited list (lists with

   internal spaces must be quoted) [max 8 OIDs]

 

Related, I've also had some problems with MaxMessageSize truncating return data.

 

Regards.

 

 

From: borat Gunter [mailto:borat.gunter at googlemail.com] 
Sent: Friday, July 09, 2010 1:40 AM
To: nagiosplug-devel at lists.sourceforge.net; nagios-users at lists.sourceforge.net
Subject: [Nagiosplug-devel] check_snmp OID numbers limited?

 

Dear all,
I have found an interesting point as I test my switch-ports by so:
define service{
        use                                  router-service
        host_name                      switch1
        service_description         portstest
        check_command             snmp_ports!1.3.6.1.2.1.2.2.1.8.1,1.3.6.1.2.1.2.2.1.8.2,1.3.6.1.2.1.2.2.1.8.3,1.3.6.1.2.1.2.2.1.8.4,1.3.6.1.2.1.2.2.1.8.5,1.3.6.1.2.1.2.2.1.8.6,1.3.6.1.2.1.2.2.1.8.7,1.3.6.1.2.1.2.2.1.8.8,1.3.6.1.2.1.2.2.1.8.9,1.3.6.1.2.1.2.2.1.8.10,1.3.6.1.2.1.2.2.1.8.11,1.3.6.1.2.1.2.2.1.8.12,1.3.6.1.2.1.2.2.1.8.13,1.3.6.1.2.1.2.2.1.8.14,1.3.6.1.2.1.2.2.1.8.15,1.3.6.1.2.1.2.2.1.8.16,1.3.6.1.2.1.2.2.1.8.17,1.3.6.1.2.1.2.2.1.8.18,1.3.6.1.2.1.2.2.1.8.19,1.3.6.1.2.1.2.2.1.8.20,1.3.6.1.2.1.2.2.1.8.21,1.3.6.1.2.1.2.2.1.8.22,1.3.6.1.2.1.2.2.1.8.23,1.3.6.1.2.1.2.2.1.8.24,1.3.6.1.2.1.2.2.1.8.25,1.3.6.1.2.1.2.2.1.8.26,1.3.6.1.2.1.2.2.1.8.27,1.3.6.1.2.1.2.2.1.8.28,1.3.6.1.2.1.2.2.1.8.29,1.3.6.1.2.1.2.2.1.8.30,1.3.6.1.2.1.2.2.1.8.31,1.3.6.1.2.1.2.2.1.8.32,1.3.6.1.2.1.2.2.1.8.33,1.3.6.1.2.1.2.2.1.8.34,1.3.6.1.2.1.2.2.1.8.35,1.3.6.1.2.1.2.2.1.8.36,1.3.6.1.2.1.2.2.1.8.37,1.3.6.1.2.1.2.2.1.8.38,1.3.6.1.2.1.2.2.1.8.39,1.3.6.1.2.1.2.2.1.8.40,1.3.6.1.2.1.2.2.1.8.41,1.3.6.1.2.1.2.2.1.8.42,1.3.6.1.2.1.2.2.1.8.43,1.3.6.1.2.1.2.2.1.8.44,1.3.6.1.2.1.2.2.1.8.45,1.3.6.1.2.1.2.2.1.8.46,1.3.6.1.2.1.2.2.1.8.47,1.3.6.1.2.1.2.2.1.8.48![12]
}

define command {
        command_name     snmp_ports
        command_line        $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -r $ARG2$ -l 'snmp_ports'
}
With this definition nagios shows critical status, but as I reduced the number of OIDs, only from 1.3.6.1.2.1.2.2.1.8.21 to 1.3.6.1.2.1.2.2.1.8.48, then nagios shows OK, after I add any of a OID from 1.3.6.1.2.1.2.2.1.8.1 to 1.3.6.1.2.1.2.2.1.8.20, nagios gives out again the critical status. Although with snmpwalk have I all the 1 to 48 Ports with 1(Up) or 2(Down) status.

Any Help?
thanks very much in advance.
best regards.

------------------------------

------------------------------------------------------------------


Hallo Zusammen,

Ich überwache gerade mein Switch-Ports, insg. 48 Ports, habe mit
define service{
        use                                  router-service
        host_name                      switch1
        service_description         portstest
        check_command             snmp_ports!1.3.6.1.2.1.2.2.1.8.1,1.3.6.1.2.1.2.2.1.8.2,1.3.6.1.2.1.2.2.1.8.3,1.3.6.1.2.1.2.2.1.8.4,1.3.6.1.2.1.2.2.1.8.5,1.3.6.1.2.1.2.2.1.8.6,1.3.6.1.2.1.2.2.1.8.7,1.3.6.1.2.1.2.2.1.8.8,1.3.6.1.2.1.2.2.1.8.9,1.3.6.1.2.1.2.2.1.8.10,1.3.6.1.2.1.2.2.1.8.11,1.3.6.1.2.1.2.2.1.8.12,1.3.6.1.2.1.2.2.1.8.13,1.3.6.1.2.1.2.2.1.8.14,1.3.6.1.2.1.2.2.1.8.15,1.3.6.1.2.1.2.2.1.8.16,1.3.6.1.2.1.2.2.1.8.17,1.3.6.1.2.1.2.2.1.8.18,1.3.6.1.2.1.2.2.1.8.19,1.3.6.1.2.1.2.2.1.8.20,1.3.6.1.2.1.2.2.1.8.21,1.3.6.1.2.1.2.2.1.8.22,1.3.6.1.2.1.2.2.1.8.23,1.3.6.1.2.1.2.2.1.8.24,1.3.6.1.2.1.2.2.1.8.25,1.3.6.1.2.1.2.2.1.8.26,1.3.6.1.2.1.2.2.1.8.27,1.3.6.1.2.1.2.2.1.8.28,1.3.6.1.2.1.2.2.1.8.29,1.3.6.1.2.1.2.2.1.8.30,1.3.6.1.2.1.2.2.1.8.31,1.3.6.1.2.1.2.2.1.8.32,1.3.6.1.2.1.2.2.1.8.33,1.3.6.1.2.1.2.2.1.8.34,1.3.6.1.2.1.2.2.1.8.35,1.3.6.1.2.1.2.2.1.8.36,1.3.6.1.2.1.2.2.1.8.37,1.3.6.1.2.1.2.2.1.8.38,1.3.6.1.2.1.2.2.1.8.39,1.3.6.1.2.1.2.2.1.8.40,1.3.6.1.2.1.2.2.1.8.41,1.3.6.1.2.1.2.2.1.8.42,1.3.6.1.2.1.2.2.1.8.43,1.3.6.1.2.1.2.2.1.8.44,1.3.6.1.2.1.2.2.1.8.45,1.3.6.1.2.1.2.2.1.8.46,1.3.6.1.2.1.2.2.1.8.47,1.3.6.1.2.1.2.2.1.8.48![12]
}

define command {
        command_name     snmp_ports
        command_line        $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -r $ARG2$ -l 'snmp_ports'
}
probiert und bekomme ich Critical-Meldung, obwohl alle Ports antwortet mit entweder 1 oder 2. 

Dann habe ich von OID 1.3.6.1.2.1.2.2.1.8.48 angefangen und Anzahl zunehmend getestet, bis zu 1.3.6.1.2.1.2.2.1.8.21 (d.h.check_command                   snmp_ports!1.3.6.1.2.1.2.2.1.8.21,1.3.6.1.2.1.2.2.1.8.22,1.3.6.1.2.1.2.2.1.8.23,1.3.6.1.2.1.2.2.1.8.24,1.3.6.1.2.1.2.2.1.8.25,1.3.6.1.2.1.2.2.1.8.26,1.3.6.1.2.1.2.2.1.8.27,1.3.6.1.2.1.2.2.1.8.28,1.3.6.1.2.1.2.2.1.8.29,1.3.6.1.2.1.2.2.1.8.30,1.3.6.1.2.1.2.2.1.8.31,1.3.6.1.2.1.2.2.1.8.32,1.3.6.1.2.1.2.2.1.8.33,1.3.6.1.2.1.2.2.1.8.34,1.3.6.1.2.1.2.2.1.8.35,1.3.6.1.2.1.2.2.1.8.36,1.3.6.1.2.1.2.2.1.8.37,1.3.6.1.2.1.2.2.1.8.38,1.3.6.1.2.1.2.2.1.8.39,1.3.6.1.2.1.2.2.1.8.40,1.3.6.1.2.1.2.2.1.8.41,1.3.6.1.2.1.2.2.1.8.42,1.3.6.1.2.1.2.2.1.8.43,1.3.6.1.2.1.2.2.1.8.44,1.3.6.1.2.1.2.2.1.8.45,1.3.6.1.2.1.2.2.1.8.46,1.3.6.1.2.1.2.2.1.8.47,1.3.6.1.2.1.2.2.1.8.48![12] ), meldet das Plugin immer OK Zustand, dann egal mit 1.3.6.1.2.1.2.2.1.8.20 oder 1.3.6.1.2.1.2.2.1.8.1 hinzugefügt, nur ein OID mehr, dann meldet das Plugin Critical, obwohl per snmpwalk-Abfragen kriege ich ganz normale Rückmeldung 1 oder 2. 

Kann Jemand mir weiter helfen?

Vielen Dank im Voraus, 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20100709/f5d89d5e/attachment.html>


More information about the Devel mailing list