> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Jeffry Bilder
> Sent: Wednesday, March 15, 2006 12:16 PM
> To: [email protected]
> Subject: RE: [Nagios-users] Service Dependancies
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:nagios-users-
> > [EMAIL PROTECTED] On Behalf Of Jeffry Bilder
> > Sent: Wednesday, March 15, 2006 11:34 AM
> > To: [email protected]
> > Subject: [Nagios-users] Service Dependancies
> >
> > I am currently trying to find a way to supress emails about services
> > being down if PING has a problem. Does anyone else have it setup in
> > this manner? For example...
> >
> > A windows machine is not pingable, suppress all other notifications
> > until Ping is accessible again.
>
> This is standard behavior if you have a host check_command that
returns
> non-OK when the host is unavailable.
>
> http://nagios.sourceforge.net/docs/1_0/networkreachability.html
>
> I have read the documentation, and I am using 2.0. I really wish this
> were the case by default cause I am getting notified that all the
> services are down when the host cannot be pinging. Please check an
> example of a host in my hosts.cfg section:
>
> define host {
> host_name S2NA1ROCK
> alias S2NA1ROCK
> address 192.168.1.10
> parents ROCK-Firewall
> hostgroups Servers
> max_check_attempts 10
> active_checks_enabled 1
> passive_checks_enabled 1
> check_period 24x7
> obsess_over_host 1
> check_freshness 0
> event_handler_enabled 1
> flap_detection_enabled 1
> process_perf_data 1
> retain_status_information 1
> retain_nonstatus_information 1
> contact_groups admins,Server-Administrator
> notification_interval 0
> notification_period 24x7
> notification_options d,r
> notifications_enabled 1
> register 1
> }
>
> Do I have something misconfigured that is still allowing all
subsequest
> services to alert?
Yes, you're missing a check_command for this host. That is required for
the behavior you want and with your config above the host itself is
never checked. If you're using the sample config files as a base, there
is a command definition named check-host-alive that you can use.
check_command check-host-alive
I would also set max_check_attempts to 1 or 2. You don't need more than
that to determine if the host is down and you want host checks to finish
as quickly as possible. _All_ other activity stops while hosts are being
checked.
--
Marc
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
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