Nagios 4.2.1 snmp oid

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
lion14
Posts: 8
Joined: Wed Dec 07, 2016 5:13 am

Nagios 4.2.1 snmp oid

Post 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?
Last edited by lion14 on Mon Jan 23, 2017 7:58 am, edited 1 time in total.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios 4.2.1 snmp oid

Post 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?
Former Nagios employee
https://www.mcapra.com/
lion14
Posts: 8
Joined: Wed Dec 07, 2016 5:13 am

Re: Nagios 4.2.1 snmp oid

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios 4.2.1 snmp oid

Post 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.
Former Nagios employee
https://www.mcapra.com/
Locked