[Nagiosplug-help] check_load plugin
Iain M Conochie
iain at shihad.org
Tue Mar 20 19:04:04 CET 2007
Good Afternoon,
I am trying to get the check_load plugin to work on a nagios 1.3
server. The plugin version is 1.4.2-5 (ubuntu supplied package).
Basically, this is my setup
in services.cfg
check_command check_load!4.5,2.0,2.0!9.0,5.0,5.0
in minimal.cfg
command_line $USER1$/check_load -w $ARG1$ -c $ARG2$
Now, when this runs i get the following output
Warning threshold must be float or float triplet!
So according to
http://www.nagios.org/faqs/viewfaq.php?faq_id=162&expand=true&showdesc=false
I can setup a debug script. So i did :)
#!/bin/sh
echo `date` >> /tmp/debug_check_load
echo $* >> /tmp/debug_check_load
/usr/lib/nagios/plugins/check_load $*
Now, when I change the entry in services.cfg to
check_command check_load_debug!4.5,2.0,2.0!9.0,5.0,5.0
I get the correct output!
OK - load average: 0.00, 0.00, 0.00
This is the output to /tmp/debug_check_load
Tue Mar 20 18:01:06 GMT 2007
-w 4.5,2.0,2.0 -c 9.0,5.0,5.0
Any ideas as to what is going on here?
Cheers
Iain
More information about the Help
mailing list