check_load output

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
Rhobar
Posts: 41
Joined: Sat Mar 16, 2013 9:23 am
Location: Rome, Italy

check_load output

Post by Rhobar »

Hello World!

I have a new question for you :D

I'm using this definition in localhost.cfg:

Code: Select all

define service{
        use                             local-service         ; Name of service template to use
        host_name                  localhost
        service_description      Current Load
	check_command	  check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
        }
and this definition in commands.cfg:

Code: Select all

# 'check_local_load' command definition
define command{
        command_name    check_local_load
        command_line       $USER1$/check_load -w $ARG1$ -c $ARG2$
        }
this is the output:

Code: Select all

OK - load average: 0.21, 0.10, 0.05  
what does it mean?

what is the significance of those numbers?
is there another way to view the output?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_load output

Post by scottwilkerson »

This is the 1 minute, 5 minute, 15 minute load on the localhost (your XI server)

http://en.wikipedia.org/wiki/Load_%28computing%29
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Rhobar
Posts: 41
Joined: Sat Mar 16, 2013 9:23 am
Location: Rome, Italy

Re: check_load output

Post by Rhobar »

they are everage values calculated in the last minute, last five minutes and 15 last minutes (in this order), is right?

and there ins't another way to display these values, right?

these values ranging from 0 to 1?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_load output

Post by slansing »

That is how system load is typically shown in "TOP" within Linux systems, and is how the plugin is formatted to return the plain text check data. You could possibly modify the plugin or create a new one to return what you would like.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_load output

Post by abrist »

Rhobar wrote:and there ins't another way to display these values, right?
these values ranging from 0 to 1?
Only for single-core systems, and it would be the same unit of measurement as load, and only if there was no wait. A load of "1.0" is one core and 100% percent utilization. Anything over implies that there was some wait involved. But if you had 4 cores, a load of "1.0" would imply that on average, all 4 cores are working at 25% of capacity with no wait. At load "4.0", the quad-core system will be at 100% utilization and anything over will imply that there was some wait.

You could look at plugins that may give you cpu usage percentage, as that would have a hard limit at 100%. I assume you want these numbers scaled differently for reporting/graphing?

http://blog.scoutapp.com/articles/2009/ ... d-averages
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Rhobar
Posts: 41
Joined: Sat Mar 16, 2013 9:23 am
Location: Rome, Italy

Re: check_load output

Post by Rhobar »

ok, that's all I wanted to know
thanks all ;)
abrist wrote: You could look at plugins that may give you cpu usage percentage, as that would have a hard limit at 100%. I assume you want these numbers scaled differently for reporting/graphing?
I can use these numbers too, but I needed to know what they mean exacty
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_load output

Post by slansing »

Rhobar wrote:ok, that's all I wanted to know
thanks all ;)
abrist wrote: You could look at plugins that may give you cpu usage percentage, as that would have a hard limit at 100%. I assume you want these numbers scaled differently for reporting/graphing?
I can use these numbers too, but I needed to know what they mean exacty
Well, using a CPU specific check that has a percentage return would indicate the total used percentage at the time the check was ran, you could set this limit to say..50% and that would indicate that as a whole, your system's processor "all cores I should think" were operating at 50% of their maximum value at that time.
Rhobar
Posts: 41
Joined: Sat Mar 16, 2013 9:23 am
Location: Rome, Italy

Re: check_load output

Post by Rhobar »

oooook

thanks all friends ;)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_load output

Post by slansing »

Closing as resolved!
Locked