Would love some ideas on how to monitor switch port duplex
Posted: Tue Jul 29, 2014 5:08 pm
So like the title says, I'm trying to monitor switch port duplex mode. I figured this would be doable using SNMP, however, what I didn't take into account were the older switches we need to monitor duplex on. Currently we're trying to monitor 3COM 4200G 48-port switches. The do appear to support SNMP, but whenever I reference most OIDs, I get errors. We'll take the default port monitoring command/service that comes with Nagios 4.0.7. Right now, I have configured:
and
What this returns in Nagios is really confusing:
Has anyone seen this before?
Also, if someone knows of a better way to monitor port duplex, I'm all ears. I was hoping 3COM copied Cisco (Cisco has a portDuplex OID), but, alas, they did not.
Thank you!
Code: Select all
define command{
command_name check_snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
}
Code: Select all
define service{
use generic-service
host_name NAME OF SWITCH
service_description Port 1 Link Status
check_command check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
}
Code: Select all
External command error: MIB search path: $HOME/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (SNMPv2-SMI): At line 0 in (none)
ifOperStatus.1: Unknown Object Identifier (Sub-id not found: (top) -> ifOperStatus)
Also, if someone knows of a better way to monitor port duplex, I'm all ears. I was hoping 3COM copied Cisco (Cisco has a portDuplex OID), but, alas, they did not.
Thank you!