check_snmp command to show vlan for port
Posted: Sat Sep 15, 2012 12:22 am
system: Ubuntu 10.04
nagios: 3.4.1
I am trying to use check_snmp to show vlan of cisco switchports
check_command check_snmp! -v 2c -C xxx -o ifName.10001,ifDescr.1,ifOperStatus.10001,ifPhysAddress,ifLastChange
According to my OID list for my switch (snmp v2c) IF-MIB::ifDescr.1=STRING: Vlan1
However, it's listing all my ports as if they were assigned to Vlan1....so I've either got the wrong OID, or I need to use another check_command to list the proper Vlan for the specified port.
Any help in how (or which) command I should use is much appreciated.
nagios: 3.4.1
I am trying to use check_snmp to show vlan of cisco switchports
check_command check_snmp! -v 2c -C xxx -o ifName.10001,ifDescr.1,ifOperStatus.10001,ifPhysAddress,ifLastChange
According to my OID list for my switch (snmp v2c) IF-MIB::ifDescr.1=STRING: Vlan1
However, it's listing all my ports as if they were assigned to Vlan1....so I've either got the wrong OID, or I need to use another check_command to list the proper Vlan for the specified port.
Any help in how (or which) command I should use is much appreciated.