CPU check for localhost?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DFaught
Posts: 62
Joined: Tue Sep 26, 2017 12:50 pm

CPU check for localhost?

Post by DFaught »

How do I add a check for CPU utilization for the NagiosXI localhost? Since CPU busy is such an important measurement, I am wondering why it is not a normal default service check.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: CPU check for localhost?

Post by npolovenko »

Hello, @DFaught . There's a current load plugin, you should have it for the localhost I believe. It checks the average CPU load over 1 minute, 5 minutes and 15 minutes(can be changed). If the average load goes above 1, like 1.05, that means that the processor is overloaded and 0.05 processes on average are waiting during this time period.
Let me know if all that makes sense to you.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
DFaught
Posts: 62
Joined: Tue Sep 26, 2017 12:50 pm

Re: CPU check for localhost?

Post by DFaught »

Thank you for the quick response. I am familiar with the concept of load average in Linux/Unix but it is really not the same thing as CPU usage and a little more complicated than what you described, for example if the machine being measured has multiple CPUs. In many if not most system monitors, both load average and CPU usage get reported as they have different meanings.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: CPU check for localhost?

Post by npolovenko »

@DFaught, I agree with you. I guess historically there were not enough requests from Nagios users to include CPU utilization in standard plugins. You may put a feature request for this if you'd like:
https://github.com/nagios-plugins/nagio ... issues/new
Now, as far as adding a CPU utilization plugin for your system. We have a lot of CPU plugins on the https://exchange.nagios.org/ I'll throw in a link to one of them that you could use: https://exchange.nagios.org/directory/P ... sh/details
Here's the tutorial on how to install new plugins: https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Let me know if you have any difficulties with getting a plugin to work. I'll be glad to help.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked