Page 1 of 1

Nagios 4.2.1 snmp oid

Posted: Thu Jan 19, 2017 5:09 am
by lion14
Hello everyone!

I have Nagios Core 4.2.1 installed on Centos 7. I wan't to monitor cisco switches by snmp oid's.

For exmaple, I got the oid 1.3.6.1.4.1.9.9.109.1.1.1.1.5.1 ( Cisco CPU load 5min). I know, I can easily monitor this with "check_snmp" plugin, but the output is "SNMP OK - 4". I wan't to see the percent of the CPU load.

I tried this plugin:

Code: Select all

./check_snmp -H x.x.x.x -o 1.3.6.1.4.1.9.9.109.1.1.1.1.5.1 -m all -w 50 -c 80

Output: SNMP OK - 4 | SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.5.1=4;50;80;50;80;
How can I get the percent of the CPU Load?

Re: Nagios 4.2.1 snmp oid

Posted: Thu Jan 19, 2017 12:24 pm
by mcapra
The load appears to be provided in 2 places:

Output: SNMP OK - 4 | SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.5.1=4;50;80;50;80;

It looks as if that OID returned "4" for it's value, which I assume represents 4% load. Is that not correct?

Re: Nagios 4.2.1 snmp oid

Posted: Fri Jan 20, 2017 3:59 am
by lion14
Yeah, now i get it. I just didn't know that value is in percent..

So I can monitor all services with check_snmp plugin (with oid's)? Temp, free mem, etc..

Thanks for the reply

Re: Nagios 4.2.1 snmp oid

Posted: Fri Jan 20, 2017 12:06 pm
by mcapra
Theoretically, yes. It's more dependent on the OIDs your remote system's SNMP agent is providing than anything. check_snmp just grabs an OID and compares it's returned value to a provided threshold or expected value.