<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
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: pangrazi@gmail.com<br>> Date: Fri, 10 Dec 2010 09:28:13 -0600<br>> To: rik.dahlberg@gmail.com; nagios-users@lists.sourceforge.net<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 <rik.dahlberg@gmail.com> 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: pangrazi@gmail.com<br>> >> Date: Fri, 10 Dec 2010 08:05:45 -0600<br>> >> To: nagios-users@lists.sourceforge.net<br>> >> Subject: Re: [Nagios-users] Alert host down with passive check<br>> >><br>> >> You are looking for "Freshness"<br>> >><br>> >> check out http://nagios.sourceforge.net/docs/3_0/freshness.html<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 <ej_seg@hotmail.com><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>> >> > Nagios-users@lists.sourceforge.net<br>> >> > https://lists.sourceforge.net/lists/listinfo/nagios-users<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>> >> Nagios-users@lists.sourceforge.net<br>> >> https://lists.sourceforge.net/lists/listinfo/nagios-users<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>> Nagios-users@lists.sourceforge.net<br>> https://lists.sourceforge.net/lists/listinfo/nagios-users<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>                                    </body>
</html>