Warning threshold must be float or float triplet!

Justin Craig jrcraig.email at gmail.com
Wed Aug 2 15:37:50 CEST 2006


In my checkcommands.cfg for this host in question, I have:


# 'check_local_disk' command definition
define command{
        command_name    check_local_disk
        command_line    $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
        }


# 'check_local_load' command definition
define command{
        command_name    check_local_load
        command_line    $USER1$/check_load -w $ARG1$ -c $ARG2$
        }


# 'check_local_procs' command definition
define command{
        command_name    check_local_procs
        command_line    $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
        }


# 'check_local_users' command definition
define command{
        command_name    check_local_users
        command_line    $USER1$/check_users -w $ARG1$ -c $ARG2$
        }


On 8/1/06, Marc Powell <marc at ena.com> wrote:
>
>
>
> > -----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
>



-- 
- Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060802/3ec0ed2b/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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