In my checkcommands.cfg for this host in question, I have:<br>
<br>
<br>
# 'check_local_disk' command definition<br>
define command{<br>
command_name check_local_disk<br>
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$<br>
}<br>
<br>
<br>
# 'check_local_load' command definition<br>
define command{<br>
command_name check_local_load<br>
command_line $USER1$/check_load -w $ARG1$ -c $ARG2$<br>
}<br>
<br>
<br>
# 'check_local_procs' command definition<br>
define command{<br>
command_name check_local_procs<br>
command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$<br>
}<br>
<br>
<br>
# 'check_local_users' command definition<br>
define command{<br>
command_name check_local_users<br>
command_line $USER1$/check_users -w $ARG1$ -c $ARG2$<br>
}<br>
<br><br><div><span class="gmail_quote">On 8/1/06, <b class="gmail_sendername">Marc Powell</b> <<a href="mailto:marc@ena.com">marc@ena.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br>> -----Original Message-----<br>> From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a> [mailto:<a href="mailto:nagios-users-">nagios-users-</a><br>
> <a href="mailto:bounces@lists.sourceforge.net">bounces@lists.sourceforge.net</a>] On Behalf Of Justin Craig<br>> Sent: Tuesday, August 01, 2006 2:41 PM<br>> To: Nagios Users Mailinglist<br>> Subject: Re: [Nagios-users] Warning threshold must be float or float
<br>> triplet!<br><br>[chop]<br><br>> define service{<br>>
use
generic-service ; Name<br>of<br>>
service template to
use host_name
nagonet<br>>
service_description
Current Load<br>>
is_volatile
0<br>>
check_period 24x7<br>>
max_check_attempts 4<br>>
normal_check_interval
5<br>>
retry_check_interval 1<br>>
contact_groups nagiosadmin<br>>
notification_options w,u,c,r<br>>
notification_interval
960<br>>
notification_period
24x7<br>> check_command<br>> check_local_load!5.0,4.0,3.0!10.0,6.0,4.0<br>> }<br><br>This will work presuming your check_local_load command{} uses the $ARG1$<br>and $ARG2$ macros appropriately --
<br><br>$ ./check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0<br>OK - load average: 2.90, 2.29, 2.76|load1=2.900;5.000;10.000;0;<br>load5=2.290;4.000;6.000;0; load15=2.760;3.000;4.000;0;<br><br>Your command{} command_line should look something like --
<br><br>command_line $USER1$/check_load -w $ARG1$ -c $ARG2$<br><br>Does it?<br><br>--<br>Marc<br><br>-------------------------------------------------------------------------<br>Take Surveys. Earn Cash. Influence the Future of IT
<br>Join SourceForge.net's Techsay panel and you'll get the chance to share your<br>opinions on IT & business topics through brief surveys -- and earn cash<br><a href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a><br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">
Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br><br clear="all"><br>-- <br> - Justin