Router/L3 Switch SNMP OIDs to monitor CPU Utilization & Mem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Satyam
Posts: 63
Joined: Mon Oct 24, 2011 8:14 am

Router/L3 Switch SNMP OIDs to monitor CPU Utilization & Mem

Post by Satyam »

Hi,

I am trying to use check_snmp plugin to monitor Cisco routers and Cisco L3
switches. I want to monitor CPU Utilization percentage & Memory Used/Free
(in MB/KB) for Router and switches. Can someone help me in finding the
exact OID to monitor these KPIs. I am using Net-SNMP package as base. I am
doing snmpget cli to first check the values for the OIDs. Is there anyways we can monitor these KPIs.

Thanks,
Manish Kumar,
IMS, Mahindra Satyam
Thanks,
Sattanathan.S
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Router/L3 Switch SNMP OIDs to monitor CPU Utilization &

Post by lmiltchev »

Manish,

I am not sure if this will help, but check this link out:

http://www.oidview.com/mibs/9/md-9-1.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
Satyam
Posts: 63
Joined: Mon Oct 24, 2011 8:14 am

Re: Router/L3 Switch SNMP OIDs to monitor CPU Utilization &

Post by Satyam »

I am still not very clear about this problem and how to go ahead. Actually I have checked on the exchange there are noreadily available plugins to monitor memory used and percent of cpu utilization on cisco router/switches. I thought i could write a wrapper around Net-SNMP utilities but i am not able to understand the details of OIDs and what it means and the units of it.


When I am doing snmpwalk on one of the cisco router for the memory pool


[root@mmkndnagdb libexec]# snmpwalk -v2c -c ********* 10.6.54.33 1.3.6.1.4.1.9.9.48.1.1.1
SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.1 = STRING: "Processor"
SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.2 = STRING: "I/O"
SNMPv2-SMI::enterprises.9.9.48.1.1.1.3.1 = INTEGER: 0
SNMPv2-SMI::enterprises.9.9.48.1.1.1.3.2 = INTEGER: 0
SNMPv2-SMI::enterprises.9.9.48.1.1.1.4.1 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.48.1.1.1.4.2 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.48.1.1.1.5.1 = Gauge32: 26538720
SNMPv2-SMI::enterprises.9.9.48.1.1.1.5.2 = Gauge32: 15792784
SNMPv2-SMI::enterprises.9.9.48.1.1.1.6.1 = Gauge32: 91092448
SNMPv2-SMI::enterprises.9.9.48.1.1.1.6.2 = Gauge32: 21955952
SNMPv2-SMI::enterprises.9.9.48.1.1.1.7.1 = Gauge32: 88922728
SNMPv2-SMI::enterprises.9.9.48.1.1.1.7.2 = Gauge32: 21934332
[root@mmkndnagdb libexec]#

Which of the above OIDs gives the values of memory used and or memory free and or total memory etc and is the values are in bytes. So i can do the calculations in my wrapper script.

Thanks,
Manish Kumar
Open Source Tools Team,
IMS, Mahindra Satyam, Bangalore, India
Thanks,
Sattanathan.S
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Router/L3 Switch SNMP OIDs to monitor CPU Utilization &

Post by scottwilkerson »

It is going to be somewhat device specific.

I would run your snmpwalk from 1.3.6.1.4.1.9.9.48

And then using the details here, compare the numbers to what you would expect to see
http://www.oidview.com/mibs/9/CISCO-MEM ... L-MIB.html
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Satyam
Posts: 63
Joined: Mon Oct 24, 2011 8:14 am

Re: Router/L3 Switch SNMP OIDs to monitor CPU Utilization &

Post by Satyam »

Thanks for the reply , But i just wanted to confirm these:

1.3.6.1.4.1.9.2.1.58.0 -> CPU Utilization in percentage (Have i understood correctly, also on most of the routers its showing 0 always, this is why i am confused how it can be 0 % most of the time)

1.3.6.1.4.1.9.2.1.8.0 (or 1.3.6.1.4.1.9.9.48.1.1.1.6.1) -> Free Memory in Bytes (Have i understood correctly)


If i understood correctly, can i go ahead and configure(using check_snmp) in my production NagiosXI these KPIs for monitoring network devices.
Thanks,
Sattanathan.S
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Router/L3 Switch SNMP OIDs to monitor CPU Utilization &

Post by scottwilkerson »

To be honest, the best place to find out conclusively would be the device manufacturer, in this case Cisco.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked