Cisco switch 3750
SNMP agent is enabled
I found this check https://exchange.nagios.org/directory/P ... rs/details
My command
Code: Select all
define command{
command_name check_cisco
command_line $USER1$/check_cisco.pl -H $HOSTADDRESS$ $USER7$ -n $ARG1$ $ARG2$
}
Code: Select all
# cisco.proto
define service{
use generic-service
host_name hostname
service_description Check_Interface_Port_0/1
check_command check_cisco!-C cisco3750 -i GigabitEthernet0/1
}
Testing from command line first
/usr/local/nagios/etc/objects# /usr/local/nagios/libexec/check_cisco.pl -C cisco3750 -i GigabitEthernet1/0/21
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (IF-MIB): At line 0 in (none)
IF-MIB::ifDescr: Unknown Object Identifier
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (IF-MIB): At line 0 in (none)
IF-MIB::ifName: Unknown Object Identifier
Interface not found : please check your syntax for this device
First I thought SNMP was not on the switch
Switch>en
Password:
Switch#show snmp
Chassis: FDO1446K03S
0 SNMP packets input
0 Bad SNMP version errors
0 Unknown community name
0 Illegal operation for community name supplied
0 Encoding errors
0 Number of requested variables
0 Number of altered variables
0 Get-request PDUs
0 Get-next PDUs
0 Set-request PDUs
0 Input queue packet drops (Maximum queue size 1000)
0 SNMP packets output
0 Too big errors (Maximum packet size 1500)
0 No such name errors
0 Bad values errors
0 General errors
0 Response PDUs
0 Trap PDUs
SNMP global trap: enabled
SNMP logging: disabled
SNMP agent enabled
I tried a snmp walk from my computer
snmp walk -v l -c public 10.22.8.4 1.3.6.1.2.1.2
10.22.8.34 is ip address of my switch
any ideas or suggestions.
Any ideas?