Page 1 of 1

check_snmp CPU with Cisco Switch

Posted: Thu Jun 29, 2017 7:33 pm
by sartecat
So I downloaded CISCO-SMI.my and CISCO-ENVMON-MIB.my into my /usr/share/snmp/mibs directory.

When I do an snmpwalk, it returns a value of Gauge32: 23

[root@nagios-server-model libexec]# snmpwalk -v2c -c maunakea 172.16.0.4 .1.3.6.1.4.1.9.9.109.1.1.1.1.7SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.1 = Gauge32: 23

But when I use the ./check_snmp, it says SNMP is OK but no such instance exists.

[root@nagios-server-model libexec]# ./check_snmp -P 2c -C maunakea 172.16.0.4 -o 1.3.6.1.4.1.9.9.109.1.1.1.1.7
SNMP OK - No Such Instance currently exists at this OID |

I looked it up and said that I need to run snmpwalk for the tree. So I did smpwalk -v2c -c maunakea 172.16.0.4 .1.3.6.1.4.1.9.9 and rerun the commands, but it still gave me the same response.

How do I go about fixing this?

Re: check_snmp CPU with Cisco Switch

Posted: Thu Jun 29, 2017 9:46 pm
by tacolover101
it looks like you forgot .1 at the end of your check_snmp command.

Re: check_snmp CPU with Cisco Switch

Posted: Fri Jun 30, 2017 11:28 am
by tgriep
It looks like you forgot to specify the -H in the command for the hostaddress. Try this to see if it works.

Code: Select all

./check_snmp -P 2c -C maunakea -H 172.16.0.4 -o 1.3.6.1.4.1.9.9.109.1.1.1.1.7

Re: check_snmp CPU with Cisco Switch

Posted: Fri Jul 07, 2017 3:34 pm
by sartecat
That works! Thank you!