snmpwalk works on EdgeSwitch 16 XG but check_snmp fails
Posted: Fri Apr 05, 2019 6:51 am
Hello.
I've recently acquired an Ubiquiti EdgeSwitch 16 XG and I'm trying to monitor it's CPU utilization. At first, I did an snmpwalk on it to find the relevant OIDs, however I could not find them. After some Google-fu I found out that I had to get a relevant MIB from Ubiquiti's web page, which I did, and moved it to /usr/share/snmp/mibs and gave it similar permissions as other MIBs.
Now I'm able to fetch the CPU utilization using the following command:
snmpwalk -c testsnmp -v 2c 10.2.1.35 1.3.6.1.4.1.4413.1.1.1.1.4.9
which outputs:
SNMPv2-SMI::enterprises.4413.1.1.1.1.4.9.0 = STRING: " 5 Secs ( 13.5635%) 60 Secs ( 11.5099%) 300 Secs ( 11.6118%)"
However, for some reason I can't achieve this using the check_snmp plugin. I can cd into the plugins directory and issue the following command:
./check_snmp -H 10.2.1.35 -C testsnmp -o 1.3.6.1.4.1.4413.1.1.1.1.4.9 -m ALL -vvv
and the output is:
/usr/bin/snmpget -Le -t 10 -r 5 -m ALL -v 1 [context] [authpriv] 10.2.1.35:161 1.3.6.1.4.1.4413.1.1.1.1.4.9
CRITICAL - Plugin timed out while executing system call
For my life I can't figure out why it is not working. I have a bunch of old HP ProCurve switches which I'm also monitoring using check_snmp and they work fine. For reference, here's a command I use to check a HP switch's CPU:
./check_snmp -H 10.2.1.25 -o .1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0 -C testsnmp
When using check_snmp to fetch the Ubiquiti's CPU status I'm using the -m switch to specify all the MIBS. I've also tried issuing the command without the -m part but it still doesn't work.
Can anybody help out? I must be missing something very obvious. Thanks in advance for the help!
I've recently acquired an Ubiquiti EdgeSwitch 16 XG and I'm trying to monitor it's CPU utilization. At first, I did an snmpwalk on it to find the relevant OIDs, however I could not find them. After some Google-fu I found out that I had to get a relevant MIB from Ubiquiti's web page, which I did, and moved it to /usr/share/snmp/mibs and gave it similar permissions as other MIBs.
Now I'm able to fetch the CPU utilization using the following command:
snmpwalk -c testsnmp -v 2c 10.2.1.35 1.3.6.1.4.1.4413.1.1.1.1.4.9
which outputs:
SNMPv2-SMI::enterprises.4413.1.1.1.1.4.9.0 = STRING: " 5 Secs ( 13.5635%) 60 Secs ( 11.5099%) 300 Secs ( 11.6118%)"
However, for some reason I can't achieve this using the check_snmp plugin. I can cd into the plugins directory and issue the following command:
./check_snmp -H 10.2.1.35 -C testsnmp -o 1.3.6.1.4.1.4413.1.1.1.1.4.9 -m ALL -vvv
and the output is:
/usr/bin/snmpget -Le -t 10 -r 5 -m ALL -v 1 [context] [authpriv] 10.2.1.35:161 1.3.6.1.4.1.4413.1.1.1.1.4.9
CRITICAL - Plugin timed out while executing system call
For my life I can't figure out why it is not working. I have a bunch of old HP ProCurve switches which I'm also monitoring using check_snmp and they work fine. For reference, here's a command I use to check a HP switch's CPU:
./check_snmp -H 10.2.1.25 -o .1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0 -C testsnmp
When using check_snmp to fetch the Ubiquiti's CPU status I'm using the -m switch to specify all the MIBS. I've also tried issuing the command without the -m part but it still doesn't work.
Can anybody help out? I must be missing something very obvious. Thanks in advance for the help!