check_load: reports wrong load average using -r option
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!
the failed test seems to be for an unrelated plugin.
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.
Implemented by #1778