Page 1 of 1

check_load fails with could not parse load from uptime

Posted: Mon Oct 12, 2020 7:59 pm
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

Re: check_load fails with could not parse load from uptime

Posted: Tue Oct 20, 2020 2:58 am
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.

Re: check_load fails with could not parse load from uptime

Posted: Wed Oct 21, 2020 5:00 pm
by benjaminsmith
Hi @denmat,

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

Benjamin