check_load issue

jeremiah jeremiah.jester at panasonic.aero
Thu Oct 16 22:49:17 CEST 2008


I checked my commands.cfg file and noticed the command wasn't defined so
I went  and put this in there...

define command {
        command_name    check_load
        command_line    libexec/check_load -w $ARG1$ $ARG2$ $ARG3 -c
$ARG4$ $ARG5$ $ARG6$
}

However, when i restarted nagios it told me the command was already
defined. So, i then commented it out and restarted..it started but still
the same error/problem: ""Warning threshold must be float or float
triplet! "

Thoughts?

JJ

./check_load -w 10.0,8.0,5.0 -c 15.0,10.0,8.0
OK - load average: 0.01, 0.02, 0.00|load1=0.010;10.000;15.000;0;
load5=0.020;8.000;10.000;0; load15=0.000;5.000;8.000;0; 
jesterj at pse02:/usr/lib/nagios/plugins$ sudo
pico /etc/nagios2/conf.d/services_nagios2.cfg 


On Thu, 2008-10-16 at 13:37 -0700, Patrick Morris wrote:
> On Thu, 16 Oct 2008, jeremiah wrote:
> 
> > My check_load service keeps on giving me the following error.
> >
> > "Warning threshold must be float or float triplet! "
> >
> > However, when i run the command from the system it works just fine.
> >
> > ./check_load -w 10.0,8.0,5.0 -c 15.0,10.0,8.0
> > OK - load average: 0.01, 0.02, 0.00|load1=0.010;10.000;15.000;0;
> > load5=0.020;8.000;10.000;0; load15=0.000;5.000;8.000;0;
> >
> > My services.cfg file looks as such..same values.
> >
> > check_command       check_load!10.0,8.0,5.0!15.0,10.0,8.0
> 
> How is your check_load check command defined?
> 
> 
> 



Disclaimer: The information contained in this transmission, including any 
attachments, may contain confidential information of Panasonic Avionics
Corporation.  This transmission is intended only for the use of the 
addressee(s) listed above.  Unauthorized review, dissemination or other use 
of the information contained in this transmission is strictly prohibited. 
If you have received this transmission in error or have reason to believe 
you are not authorized to receive it, please notify the sender by return 
email and promptly delete the transmission.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list