CPU utilization of network devices using Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

CPU utilization of network devices using Nagios XI

Post by RIDS_I2MP »

Hello Team,

We are currently using Network Switch/Router Wizard for monitoring the port status and bandwidth of switches and routers.
We also want to monitor the CPU utilization of these network devices.

Could you please let us know how it can be achieved? What all details will be required like SNMP string , IP, etc.?
Any standard document available for the same?

Nagios XI version: 5.7.1
Nagios server OD: Centos 8

Please let me know if you need any other information.

Looking forward for your help!!
Thanks & Regards,
I2MP Team.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: CPU utilization of network devices using Nagios XI

Post by jbrunkow »

I recommend trying the SNMP Wizard on your network devices. Just navigate to Configure using the top bar > click Configuration Wizards under Configuration Tools on the left pane > then search for "SNMP".

If that one does not work on your routers and switches, there are others on the Exchange that can do the same.

If the switches are running Linux, I believe you could also install NRPE or NCPA to check CPU utilization.

Code: Select all

./check_ncpa.py -H ncpaserver -t yourtoken -M cpu/percent
NCPA docs

I hope that helps! Let me know if you need any more information.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: CPU utilization of network devices using Nagios XI

Post by RIDS_I2MP »

Hello,

Thanks for your help!!

We are using cisco devices.
I tried using SNMP wizard but I don't see anything like CPU there. We do have OID details.

I am attaching the services that I could see in SNMP wizard. Please help me to understand how to monitor CPU usage there.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: CPU utilization of network devices using Nagios XI

Post by jbrunkow »

It appears that there are about three OIDs that Cisco has defined to monitor CPU on their devices.
  1. cpmCPUTotal5secRev (.1.3.6.1.4.1.9.9.109.1.1.1.1.6): The overall CPU busy percentage in the last five-second period. This object deprecates the object cpmCPUTotal5sec and increases the value range to (0..100).
  • cpmCPUTotal1minRev (.1.3.6.1.4.1.9.9.109.1.1.1.1.7): The overall CPU busy percentage in the last one-minute period. This object deprecates the object cpmCPUTotal1min and increases the value range to (0..100).
  • cpmCPUTotal5minRev (.1.3.6.1.4.1.9.9.109.1.1.1.1.8): The overall CPU busy percentage in the last five-minute period. This object deprecates the object cpmCPUTotal5min and increases the value range to (0..100).
For more information about using SNMP to check CPU utilization on Cisco devices, please refer to their documentation.
How to Collect CPU Utilization on Cisco IOS Devices Using SNMP

Can you please try entering those values in the SNMP Wizard and let me know if they work?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: CPU utilization of network devices using Nagios XI

Post by RIDS_I2MP »

Hello,

Could you please help me with individual fields?
how should I define threshold values.
Thanks & Regards,
I2MP Team.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: CPU utilization of network devices using Nagios XI

Post by jbrunkow »

I would probably set it up the following way, just to start. Then you can tweak it later if you find that it doesn't suit your needs.

Add the following values under SNMP Version Settings on Step 2 of the SNMP Wizard. Make sure you click the check box next to the services you want to monitor as well.
  1. OID= 1.3.6.1.4.1.9.9.109.1.1.1.1.5 Match Type= Numeric Warning Range= 90 Critical Range= 95
  • OID= 1.3.6.1.4.1.9.9.109.1.1.1.1.4 Match Type= Numeric Warning Range= 90 Critical Range= 95
  • OID= 1.3.6.1.4.1.9.9.109.1.1.1.1.3 Match Type= Numeric Warning Range= 90 Critical Range= 95
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: CPU utilization of network devices using Nagios XI

Post by RIDS_I2MP »

Hello,

Thanks for your help!!
I am getting below error:

[root@HO1-NAGIOSXI libexec]# /usr/local/nagios/libexec/check_snmp -H 10.1.210.248 -o '.1.3.6.1.4.1.9.9.109.1.1.1.1.5' -C '*********' -P 2c -l 'CPU Utilization' -w 70 -c 80
No valid data returned (No Such Instance currently exists at this OID)

SNMP string I have replaced above as "*". I do have the correct value with me.

Also, I have uploaded MIB file in Nagios.

Please suggest!!
Thanks & Regards,
I2MP Team.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: CPU utilization of network devices using Nagios XI

Post by jbrunkow »

That may not be the full OID, or the number could have changed. Can you please run snmpwalk against that system to see what OIDs it has available?

Code: Select all

snmpwalk 10.1.210.248 -v 2c -c xxxxxxxx 1.3.6.1.4.1.43.45.1.6.1.1.1.4
The output should look something like the following...

Code: Select all

SNMPv2-SMI::enterprises.43.45.1.6.1.1.1.4.65536 = Gauge32: 10
You may find that you have to add more numbers to the beginning of your check command. It may end up looking similar to this.

Code: Select all

/usr/local/nagios/libexec/check_snmp -H 10.1.210.248 -o '.1.3.6.1.4.1.9.9.109.1.1.1.1.5.65536' -C '*********' -P 2c -l 'CPU Utilization' -w 70 -c 80
If that doesn't yield any helpful information, can you please provide us with the exact model of your devices? That will help us determine which OIDs should be valid.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked