monitoring-plugins icon indicating copy to clipboard operation
monitoring-plugins copied to clipboard

check_load: reports wrong load average using -r option

Open henryk3dp opened this issue 7 years ago • 2 comments

Hello, check_load -r divides the load average by the number of cpu cores. The scaled values are then used in the output, which leads to interesting notices such as:

WARNING - load average: 0.08, 0.10, 0.06

While in fact the load was 72 time higher.

I got this warning from Nagios when using the default nrpe config on ubuntu

command[check_load]=@pluginsdir@/check_load -r -w .15,.10,.05 -c .30,.25,.20

The first commit fixes this problem, the second makes the file have uniform indents instead of mixed tabs and spaces. Have a nice day!

henryk3dp avatar Sep 20 '18 00:09 henryk3dp

the failed test seems to be for an unrelated plugin.

henryk3dp avatar Sep 20 '18 00:09 henryk3dp

ok, the changes seem sensible, but I would like the question, if the output should show the unscaled load, when the -r option is used. This seems to be confusing, to be honest.

RincewindsHat avatar Jul 09 '21 13:07 RincewindsHat

Implemented by #1778

RincewindsHat avatar Sep 19 '22 08:09 RincewindsHat