check_load fails with could not parse load from uptime

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
denmat
Posts: 3
Joined: Sat Mar 14, 2020 7:28 pm

check_load fails with could not parse load from uptime

Post by denmat »

On AIX systems the check_load plugin v2.2.1 fails with the error:

# /opt/freeware/lib/nagios/plugins/check_load -V
check_load v2.2.1 (nagios-plugins 2.2.1)
# /opt/freeware/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
Could not parse load from uptime:


Whereas v2.1.1 of the plugin works without a problem.

# /tmp/check_load -V
check_load v2.1.1 (nagios-plugins 2.1.1)
# /tmp/check_load -w 15,10,5 -c 30,25,20
OK - load average: 0.65, 0.99, 0.98|load1=0.650;15.000;30.000;0; load5=0.990;10.000;25.000;0; load15=0.980;5.000;20.000;0;

Is anyone aware of any issues or workarounds for this ?
Thanks
denmat
Posts: 3
Joined: Sat Mar 14, 2020 7:28 pm

Re: check_load fails with could not parse load from uptime

Post by denmat »

Problem solved. This version (from the nagios-plugins rpm provided by AIX toolbox for linux) was looking for uptime in /opt/freeware/bin/uptime and not the native OS uptime. Installing coreutils and therefore /opt/freeware/bin/uptime fixed it.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: check_load fails with could not parse load from uptime

Post by benjaminsmith »

Hi @denmat,

Glad you got it sorted and thanks for sharing your solution!

Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked