check_load does not return expected output on OS X
Posted: Thu May 05, 2016 8:16 am
Hi all,
I have the nagios plugins installed on an OS X host and I have noticed that the check_load plugin does not return the appropriate values. I am running nagios-plugins v.2.0.3 (installed via 'brew install nrpe' ), but I tried with 2.1.1 and the results are the same. If I run the plugin, I only get values for the 1 minute mark:
The second and third values are returned as 0.00, and thus, are incorrect.
Executing 'uptime' gives the (I presume) correct values:
Is this a bug ? A wild guess would be that this is a parsing issue. Is this plugin supported on OS X anyways ?
Regards,
VDA
I have the nagios plugins installed on an OS X host and I have noticed that the check_load plugin does not return the appropriate values. I am running nagios-plugins v.2.0.3 (installed via 'brew install nrpe' ), but I tried with 2.1.1 and the results are the same. If I run the plugin, I only get values for the 1 minute mark:
Code: Select all
$ ./check_load -w 1.0,0.8,0.7 -c 2.0,1.5,1.0
WARNING - load average: 1.40, 0.00, 0.00|load1=1.400;1.000;2.000;0; load5=0.000;0.800;1.500;0; load15=0.000;0.700;1.000;0;
Executing 'uptime' gives the (I presume) correct values:
Code: Select all
$ uptime
15:04 up 7 days, 22:14, 3 users, load averages: 1.37 1.81 1.64
Regards,
VDA