<div dir="ltr"><div>define host {</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>host_name<span class="Apple-tab-span" style="white-space:pre">   </span>apache0</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>check_command<span class="Apple-tab-span" style="white-space:pre">       </span>check_icmp!100.0,20%!500.0,60%</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>max_check_attempts<span class="Apple-tab-span" style="white-space:pre">  </span>15</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>check_period<span class="Apple-tab-span" style="white-space:pre">        </span>24x7</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>active_checks_enabled<span class="Apple-tab-span" style="white-space:pre">       </span>1</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>event_handler<span class="Apple-tab-span" style="white-space:pre">       </span>notify-host-by-email</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>event_handler_enabled<span class="Apple-tab-span" style="white-space:pre">       </span>1</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>notification_interval<span class="Apple-tab-span" style="white-space:pre">       </span>15</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>notification_period<span class="Apple-tab-span" style="white-space:pre"> </span>24x7</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>notifications_enabled<span class="Apple-tab-span" style="white-space:pre">       </span>1</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>alias<span class="Apple-tab-span" style="white-space:pre">       </span>apache0</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>address<span class="Apple-tab-span" style="white-space:pre">     </span><a href="http://10.10.9.15">10.10.9.15</a></div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>notification_options<span class="Apple-tab-span" style="white-space:pre">        </span>d,u,r,f</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>stalking_options<span class="Apple-tab-span" style="white-space:pre">    </span>o,d,u</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>contact_groups<span class="Apple-tab-span" style="white-space:pre">      </span>linux</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>hostgroups<span class="Apple-tab-span" style="white-space:pre">  </span>linux</div>
<div>}</div><div><br></div><div><br></div><div>fixed that..</div><div>still same thing..</div><div><br></div><div><br></div><br><div class="gmail_quote">On Thu, Oct 16, 2008 at 8:45 AM, Assaf Flatto <span dir="ltr"><<a href="mailto:assaf.flatto@ssp.uk.com">assaf.flatto@ssp.uk.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">There are no arguments passed to the check_icmp command for the warning and critical ( -w and -c ) .<br>
<br>
i assume you are passing some arguments in your  service declaration , but they are not parsed .<br>
<br>
Check the service declaration .<br>
<br>
Assaf<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
On Thursday 16 October 2008 13:28:34 chris king wrote:<br>
> ok heres my issue:<br>
> nagios.debug<br>
><br>
> ==> nagios.debug <==<br>
> [1224160395.192595] [2048.1] [pid=2555] **** BEGIN MACRO PROCESSING<br>
> ***********<br>
> [1224160395.192619] [2048.1] [pid=2555] Processing: '$USER1$/check_icmp -H<br>
> $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5'<br>
> [1224160395.192638] [2048.1] [pid=2555]   Done.  Final output:<br>
> '/usr/local/nagios/libexec/check_icmp -H <a href="http://10.10.9.15" target="_blank">10.10.9.15</a> -w  -c  -p 5'<br>
> [1224160395.192642] [2048.1] [pid=2555] **** END MACRO PROCESSING<br>
> *************<br>
> [1224160405.037868] [2048.1] [pid=2555] **** BEGIN MACRO PROCESSING<br>
> ***********<br>
> [1224160405.037895] [2048.1] [pid=2555] Processing: 'HOST ALERT:<br>
> apache0;$HOSTSTATE$;$HOSTSTATETYPE$;$HOSTATTEMPT$;CRITICAL - <a href="http://10.10.9.15" target="_blank">10.10.9.15</a>:<br>
> rta nan, lost 100%<br>
> '<br>
> [1224160405.037910] [2048.1] [pid=2555]   Done.  Final output: 'HOST ALERT:<br>
> apache0;DOWN;SOFT;2;CRITICAL - <a href="http://10.10.9.15" target="_blank">10.10.9.15</a>: rta nan, lost 100%<br>
> '<br>
> [1224160405.037914] [2048.1] [pid=2555] **** END MACRO PROCESSING<br>
> *************<br>
><br>
><br>
><br>
><br>
><br>
><br>
> my mail.log<br>
><br>
> Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: from=nagios,<br>
> size=226, class=0, nrcpts=1, msgid=<<br>
> <a href="mailto:200810161232.m9GCWFwB002578@nagios.nsanet.com">200810161232.m9GCWFwB002578@nagios.nsanet.com</a>>, relay=nagios@localhost<br>
> Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579:<br>
> <$@<a href="http://nagios.nsanet.com" target="_blank">nagios.nsanet.com</a>>... User unknown<br>
> Oct 16 07:32:15 nagios sendmail[2578]: m9GCWFwB002578: to=$, ctladdr=nagios<br>
> (104/104), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30226,<br>
> relay=[ <a href="http://127.0.0.1" target="_blank">127.0.0.1</a>] [<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>], dsn=5.1.1, stat=User unknown<br>
> Oct 16 07:32:15 nagios sm-mta[2579]: m9GCWFPm002579: from=<<br>
> <a href="mailto:nagios@nagios.nsanet.com">nagios@nagios.nsanet.com</a>>, size=226, class=0, nrcpts=0, proto=ESMTP,<br>
> daemon=MSP-v4, relay=nagios@localhost [<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>]<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> my contact-by-email command:<br>
><br>
> define command {<br>
>         command_name    notify-host-by-email<br>
>         command_line    /usr/bin/printf "%b" "***** Nagios<br>
> *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:<br>
> $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:<br>
> $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert:<br>
> $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$<br>
> }<br>
><br>
><br>
><br>
><br>
><br>
><br>
> can anyone see whats wrong?????????<br>
<br>
<br>
<br>
</div></div>--<br>
<br>
Assaf Flatto<br>
SSP Ops Team<br>
Linux System Administrator<br>
<br>
<br>
<br>
<br>
<br>
IMPORTANT . this email and the information in it may be confidential, legally<br>
privileged and/or protected by law. It is intended solely for the use of the<br>
person to whom it is addressed. If you are not the intended recipient, please<br>
notify the sender immediately and do not disclose the contents to any other<br>
person, use it for any purpose, or store or copy the information in any medium.<br>
Please also delete all copies of this email and any attachments from your<br>
system.<br>
<br>
We cannot guarantee the security or confidentiality of email communications. We<br>
do not accept any liability for losses or damages that you may suffer as a<br>
result of your receipt of this email including but not limited to computer<br>
service or system failure, access delays or interruption, data non-delivery or<br>
mis-delivery, computer viruses or other harmful components.<br>
<br>
Copyright in this email and any attachments belong to Select Service Partner UK<br>
Limited. Should you communicate with anyone at Select Service Partner UK Limited by<br>
email, you consent to us monitoring and reading any such correspondence.<br>
<br>
Nothing in this email shall be taken or read as suggesting, proposing or<br>
relating to any agreement concerted practice or other practice that could<br>
infringe UK or EC competition legislation.<br>
<br>
Select Service Partner UK Limited is a company registered in England and Wales<br>
(company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</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" target="_blank">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>
</div></div></blockquote></div><br></div>