Warning threshold must be float or float triplet!

Marc Powell marc at ena.com
Tue Aug 1 21:48:49 CEST 2006



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Justin Craig
> Sent: Tuesday, August 01, 2006 2:41 PM
> To: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Warning threshold must be float or float
> triplet!

[chop]

> define service{
>         use                             generic-service         ; Name
of
> service template to use        host_name                       nagonet
>         service_description             Current Load
>         is_volatile                     0
>         check_period                    24x7
>         max_check_attempts              4
>         normal_check_interval           5
>         retry_check_interval            1
>         contact_groups                  nagiosadmin
>         notification_options            w,u,c,r
>         notification_interval           960
>         notification_period             24x7
>         check_command
> check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
>         }

This will work presuming your check_local_load command{} uses the $ARG1$
and $ARG2$ macros appropriately --

$ ./check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0
OK - load average: 2.90, 2.29, 2.76|load1=2.900;5.000;10.000;0;
load5=2.290;4.000;6.000;0; load15=2.760;3.000;4.000;0;

Your command{} command_line should look something like --

command_line $USER1$/check_load -w $ARG1$ -c $ARG2$

Does it?

--
Marc

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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