Dependancies between host and services

Gabes Jean j.gabes at lectra.com
Thu Sep 27 15:21:00 CEST 2007


Hi,

I searched a way to put the service error of unreachable host in a unknown state, but the only way I found is a patch (posted in the dev list).

If someone got another way of doing this, I take :)
Thanks,


Jean

-----Message d'origine-----
De : nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] De la part de Gabes Jean
Envoyé : jeudi 27 septembre 2007 08:07
À : nagios-users at lists.sourceforge.net
Objet : Re: [Nagios-users] Dependancies between host and services

Yes, I've got u in notification_options for theses hosts. But I believed that was for Unknown? Maybe in that case Unknow is like Unreachable (this is logic in fact).

I'll try this, thanks a lot,



Jean


-----Message d'origine-----
De : nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] De la part de Marc Powell
Envoyé : mercredi 26 septembre 2007 16:42
À : nagios-users at lists.sourceforge.net
Objet : Re: [Nagios-users] Dependancies between host and services



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Gabes Jean
> Sent: Wednesday, September 26, 2007 8:29 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Dependancies between host and services
> 
> Hi,
> 
> 
> 
> I'm running Nagios 2.5. I've got a lot of distant servers and the
network
> is not very... reliable :)
> 
> So in a distant place, all servers are child from a router, so if I
lost
> the router, I don't have 50 alerts, just one host alert. It's done by
> parent/child relationship.

Good.
 
> The only problem is that the dependency is done in a host level. So,
when
> I lost network, I receive one Host notification, but 50x5
notifications
> for service timeout. I want to make a relationship between services of
a
> host, and it's status:

This shouldn't be happening unless you've configured something
specifically to cause it. Nagios understands that if a host is down or
unreachable, so are it's services and it will normally suppress
notifications for the services. Do you have 'u' specified as a
notification_option in your service definition? Do you have host checks
for the hosts behind this router that correctly determine the host's
state?
 
> If the host is unreachable, don't check the services of this host.

Nagios will continue to check the services on the host but is smart
enough not to notify you about them if the host is down or unreachable
(unless you override that behavior). This is documented at
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service
 

If you need further help, please post a service definition and its
associated template, the host definition and template and the parent
host definition and template. It's OK to obfuscate IP's and hostnames.

--
Marc



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list