check_load parameters

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
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

check_load parameters

Post by stecino »

Can someone decode this for me please?

check_nrpe!check_load -a 15,10,5 30,25,20

I know it's doing a load check for 1sminute, 5th minute and 15th minute

But what are are these arguments mean?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_load parameters

Post by abrist »

From the plugin's usage:
Usage:check_load [-r] -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15
The first three arguments are the warning threshold for load over 1,5, and15 minutes respectively, and the the last three are the critical thresholds for 1,5, and 15 minutes respectively.
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.
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

Re: check_load parameters

Post by stecino »

I get that, I just want to know to what threshold level are we checking (numbers, percents)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_load parameters

Post by slansing »

You are checking the Linux system's load, which pulls from the same three parameters and numeric values you get when you run a TOP this is an average of those values as abrist pointed out above.

http://blog.scoutapp.com/articles/2009/ ... d-averages
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

Re: check_load parameters

Post by stecino »

I get that, but what combination of 3 numbers is considered as warning for example?

0.70, 0.70.0.70 ??
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_load parameters

Post by abrist »

Any of them will cause an alarm if the threshold is reached. Load is calculated in temporal chunks, each one of the those values (depending on its position) represents load averaged over the respective period of time. So a warning setting of:

Code: Select all

2.0,1.5,1.0
Would warn you *if*:

average load is over 2.0 in the previous minute
average load is over 1.5 in the previous 5 minutes
average load is over 1.0 in the previous 15 minutes

Make sense now?
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.
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

Re: check_load parameters

Post by stecino »

Got it thanks
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_load parameters

Post by slansing »

Do you have any further questions on this topic?
theone
Posts: 1
Joined: Mon Jan 27, 2014 8:52 pm

Re: check_load parameters

Post by theone »

i have my nrpe.cfg file set like this for check_load..
check_load -w 0.8,0.7,0.6 -c 0.95,0.85,0.8

But I continue to get these alerts...

***** Nagios XI Alert *****

Nagios has detected a problem with this service.
Notification Type: PROBLEM
Service: Current Load
State: WARNING
Info:
WARNING - load average: 7.75, 10.05, 7.22
Date/Time: 2016-05-19 03:39:56

What can I do to set the levels to where I can stop getting alerts/warnings ?
Locked