Change OID in check_snmp_cisco

2 posts / 0 new
Last post
Soccent74
Offline
Last seen: 7 years 5 months ago
Joined: 03.04.2013 - 12:16
Change OID in check_snmp_cisco

Hello,

I use Nagwin, and I try to see the state of the switch port with SNMP (up or down).

I have this configuration :

define host{
  use             generic-switch
  host_name       Switch Cisco Bureaux 2
  alias           Cisco Bureaux 2
  address         172.24.250.132
  }
# 'check_snmp_cisco' command definition
 define command{
         command_name    check_snmp_cisco
        command_line    $USER1$/check_snmp_cisco -H $HOSTADDRESS$ -C $ARG1$ -I $ARG2$ -S$ARG3$
         }
define service{
  use                     generic-service
  host_name                Switch Cisco Bureaux 2
  service_description     Etat port fa0/1 du switch
  check_command    check_snmp_cisco!172.24.250.132!snmp-community!fa0/1!1.3.6.1.4.1.9.9.87.3.2.5
  }
define service{
  use                     generic-service
  host_name                Switch Cisco Bureaux 2
  service_description     Etat port fa0/2 du switch
  check_command    check_snmp_cisco!172.24.250.132!snmp-community!fa0/2!1.3.6.1.4.1.9.9.87.3.2.5
  }
define service{
  use                     generic-service
  host_name                Switch Cisco Bureaux 2
  service_description     Etat port fa0/3 du switch
  check_command    check_snmp_cisco!172.24.250.132!snmp-community!fa0/3!1.3.6.1.4.1.9.9.87.3.2.5
  }

 

In result, I see the different interface in critical, and I have this status for ever interface :

"(Return code of 255 is out of bounds) "

Someone have an answer ?

Soccent74

pilon
Offline
Last seen: 2 years 6 months ago
Joined: 12.02.2013 - 06:32
Can you give more details

Can you give more details about check_snmp_cisco script

When I wrote my own script (bat script) to check QNAP using check_snmp.exe. I had same error  "(Return code of 255 is out of bounds) " it is an internal error in this script, you need to  check your script.