check_load does not return expected output on OS X

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
vda
Posts: 1
Joined: Thu May 05, 2016 7:54 am

check_load does not return expected output on OS X

Post by vda »

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:

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;
The second and third values are returned as 0.00, and thus, are incorrect.

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
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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_load does not return expected output on OS X

Post by rkennedy »

As we don't have any mac hardware available for testing, could you file an issue on the plugins Github page? https://github.com/nagios-plugins/nagio ... ns/issues/

With that said, there are quite a few other plugins that should work for you. This one mentions MAC specficially.
https://exchange.nagios.org/directory/P ... d2/details

The link below here will show you a general search, one should work for you -
https://exchange.nagios.org/index.php?o ... check_load
Former Nagios Employee
Locked