servicedependency problem

Gaertner, Joern joern.gaertner at wirecard.com
Fri Jan 28 08:52:29 CET 2011


Good Morning,



the nagios version is 3.0.6.



Thanks a lot for the hint! Now it works with:

        execution_failure_criteria     o
        notification_failure_criteria  n



Quite tricky in my case was the fact that there have been other dependencies for the same service checks trickering its execution.



I think the service depencies can really be a nightmare.



Is there any better way to view them apart from the config dependency view in the webfrontend?



Thanks



Jörn











________________________________
Von: Deborah Martin [Deborah.Martin at Kognitio.com]
Gesendet: Donnerstag, 27. Januar 2011 17:05
Bis: 'Nagios Users List'
Betreff: Re: [Nagios-users] servicedependency problem


Jorn,
You haven't mentioned which version of Nagios is running so I'll assume it's 3.2.0 which is the same as mine...

I think I'd translate your servicedependency definition differently :-

"If functionality_LB is in w,c,u state don't do functionality_cl1 because
funcationality_cl1 relies on functionality_LB to be in a non warning,critical or unknown state for functionality_cl1 to work ?


define servicedependency {
        host_name                      s.test.com
        service_description            functionality_LB  <--- Parent
        dependent_service_description  functionality_cl1 <--- Child
        execution_failure_criteria     w,c,u
        notification_failure_criteria  w,c,u
        dependent_hostgroup_name       hg_test
}

Think of a parent-child relationship where a "child" check should only run if the "parent" is running ok. And if the "parent" is in a specific state (w,c,u) surpress the "child" check and also notifications. So functionality_LB is the parent and functionality_cl1 is the child in your case.

Hope that helps / makes sense.

Regards,
Deborah

-----Original Message-----
From: Gaertner, Joern [mailto:joern.gaertner at wirecard.com]
Sent: 27 January 2011 15:27
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] servicedependency problem

Hi,

I have a problem with servicedendencies.

My config looks like this:

define servicedependency {
        host_name                      s.test.com
        execution_failure_criteria     w,c,u
        service_description            functionality_LB
        dependent_service_description  functionality_cl1
        notification_failure_criteria  w,c,u
        dependent_hostgroup_name       hg_test
}

If I am not wrong this should translate to:

Do always functionality_LB on s.test.com. If functionality_LB is in state w,c,u do functionality_cl1 on hg_test but  not if functionality_LB is in state OK.

But it doesn't work.

functionality_LB is in state OK.

If I go in the web frontend on the details for check functionality_cl1 I can see the last check is always less than 3 min ago and new cheks are always scheduled.

Does anyone know what is going wrong here?

Thanks

Jörn
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY!

http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.

Any unauthorised distribution or copying is strictly prohibited.
Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions.

Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused.

Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92.

Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA
***************************************************************************

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
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