<p>You can use a macro for another service but why don't you use that service as the host check?</p>
<div class="gmail_quote">On Dec 11, 2010 2:00 AM, "Rikard Dahlberg" <<a href="mailto:rik.dahlberg@gmail.com">rik.dahlberg@gmail.com</a>> wrote:<br type="attribution">> <br>> Thanks for the fast answer.<br>
> Freshenss seems to do the tric, to a point anyway.<br>> I can see if the host services dies now, just like an active check as its down. However it doesn't report correctly on the host status.<br>> <br>> Since freshness last resport option is to ping the host IP adress, and if the server goes down and are behind a firewall, the ping will just go to that gateway. Is there any way to "fake" nagios to thinking that the host is down if some service goes down?<br>
> Rikard<br>> <br>>> From: <a href="mailto:pangrazi@gmail.com">pangrazi@gmail.com</a><br>>> Date: Fri, 10 Dec 2010 09:28:13 -0600<br>>> To: <a href="mailto:rik.dahlberg@gmail.com">rik.dahlberg@gmail.com</a>; <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
>> Subject: Re: [Nagios-users] Alert host down with passive check<br>>> <br>>> Please keep the list on the replies so others can learn from this as well.<br>>> <br>>> define service{<br>>>         use                     generic-service<br>
>>         host_name              HOST<br>>>         service_description     Logged In users<br>>>         active_checks_enabled   0;<br>>>         passive_checks_enabled  1;<br>>>         check_freshness         1;<br>
>>         freshness_threshold     600;<br>>>         check_command           check_stale!2!'This Service is stale'<br>>>         }<br>>> <br>>> Greg Pangrazio<br>>> <br>>> <br>
>> <br>>> <br>>> <br>>> On Fri, Dec 10, 2010 at 9:18 AM, Rikard Dahlberg <<a href="mailto:rik.dahlberg@gmail.com">rik.dahlberg@gmail.com</a>> wrote:<br>>> > Thanks.<br>>> ><br>
>> > I've now edited nagios.cfg to use freshness and looked up the manual.. :)<br>>> > Would you mind giving me an example of the service and command? Mine still<br>>> > isn't working..<br>
>> ><br>>> > Rikard<br>>> ><br>>> >> From: <a href="mailto:pangrazi@gmail.com">pangrazi@gmail.com</a><br>>> >> Date: Fri, 10 Dec 2010 08:05:45 -0600<br>>> >> To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
>> >> Subject: Re: [Nagios-users] Alert host down with passive check<br>>> >><br>>> >> You are looking for "Freshness"<br>>> >><br>>> >> check out <a href="http://nagios.sourceforge.net/docs/3_0/freshness.html">http://nagios.sourceforge.net/docs/3_0/freshness.html</a><br>
>> >><br>>> >> I use this with all of my passive checks.<br>>> >><br>>> >> Greg Pangrazio<br>>> >><br>>> >><br>>> >><br>>> >><br>
>> >><br>>> >> On Fri, Dec 10, 2010 at 7:56 AM, Rikard Dahlberg <<a href="mailto:ej_seg@hotmail.com">ej_seg@hotmail.com</a>><br>>> >> wrote:<br>>> >> > Heya guys!<br>
>> >> ><br>>> >> > Is there any possible way to configure nagios to report host as DOWN, if<br>>> >> > nagios havn't got any passive checkresult within like 5 minutes?<br>>> >> > Can I change that somehow? For now, when a host dies in my current<br>
>> >> > configuration, it actually doesn't report is as DOWN, since im using<br>>> >> > passive<br>>> >> > checks. But i want to set nagios to if i havn't got a new passive.-check<br>
>> >> > result in 5 minutes, i want nagios to automaticly set it as DOWN...<br>>> >> ><br>>> >> > Any idea please? :)<br>>> >> ><br>>> >> > Regards<br>
>> >> > Rikard<br>>> >> ><br>>> >> ><br>>> >> > ------------------------------------------------------------------------------<br>>> >> ><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<br>>> >> > reporting<br>>> >> > any issue.<br>>> >> > ::: Messages without supporting info will risk being sent to /dev/null<br>
>> >> ><br>>> >><br>>> >><br>>> >> ------------------------------------------------------------------------------<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<br>>> >> reporting any issue.<br>>> >> ::: Messages without supporting info will risk being sent to /dev/null<br>
>> ><br>>> <br>>> ------------------------------------------------------------------------------<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>>                                     <br></div>