You can use a macro for another service but why don't you use that service as the host check? On Dec 11, 2010 2:00 AM, "Rikard Dahlberg" <[email protected]> wrote: > > Thanks for the fast answer. > Freshenss seems to do the tric, to a point anyway. > 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. > > 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? > Rikard > >> From: [email protected] >> Date: Fri, 10 Dec 2010 09:28:13 -0600 >> To: [email protected]; [email protected] >> Subject: Re: [Nagios-users] Alert host down with passive check >> >> Please keep the list on the replies so others can learn from this as well. >> >> define service{ >> use generic-service >> host_name HOST >> service_description Logged In users >> active_checks_enabled 0; >> passive_checks_enabled 1; >> check_freshness 1; >> freshness_threshold 600; >> check_command check_stale!2!'This Service is stale' >> } >> >> Greg Pangrazio >> >> >> >> >> >> On Fri, Dec 10, 2010 at 9:18 AM, Rikard Dahlberg <[email protected]> wrote: >> > Thanks. >> > >> > I've now edited nagios.cfg to use freshness and looked up the manual.. :) >> > Would you mind giving me an example of the service and command? Mine still >> > isn't working.. >> > >> > Rikard >> > >> >> From: [email protected] >> >> Date: Fri, 10 Dec 2010 08:05:45 -0600 >> >> To: [email protected] >> >> Subject: Re: [Nagios-users] Alert host down with passive check >> >> >> >> You are looking for "Freshness" >> >> >> >> check out http://nagios.sourceforge.net/docs/3_0/freshness.html >> >> >> >> I use this with all of my passive checks. >> >> >> >> Greg Pangrazio >> >> >> >> >> >> >> >> >> >> >> >> On Fri, Dec 10, 2010 at 7:56 AM, Rikard Dahlberg <[email protected]> >> >> wrote: >> >> > Heya guys! >> >> > >> >> > Is there any possible way to configure nagios to report host as DOWN, if >> >> > nagios havn't got any passive checkresult within like 5 minutes? >> >> > Can I change that somehow? For now, when a host dies in my current >> >> > configuration, it actually doesn't report is as DOWN, since im using >> >> > passive >> >> > checks. But i want to set nagios to if i havn't got a new passive.-check >> >> > result in 5 minutes, i want nagios to automaticly set it as DOWN... >> >> > >> >> > Any idea please? :) >> >> > >> >> > Regards >> >> > Rikard >> >> > >> >> > >> >> > ------------------------------------------------------------------------------ >> >> > >> >> > _______________________________________________ >> >> > Nagios-users mailing list >> >> > [email protected] >> >> > 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 >> >> > >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> >> Nagios-users mailing list >> >> [email protected] >> >> 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 >> > >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Nagios-users mailing list >> [email protected] >> 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 >
------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev
_______________________________________________ Nagios-users mailing list [email protected] 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
