<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.34">
<TITLE>RE: [Nagios-users] servicedependency problem</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Jorn,</FONT>
<BR><FONT SIZE=2>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... </FONT>
</P>
<P><FONT SIZE=2>I think I'd translate your servicedependency definition differently :- </FONT>
</P>
<P><FONT SIZE=2>"If functionality_LB is in w,c,u state don't do functionality_cl1 because</FONT>
<BR><FONT SIZE=2>funcationality_cl1 relies on functionality_LB to be in a non warning,critical or unknown state for functionality_cl1 to work ? </FONT></P>
<BR>
<P><FONT SIZE=2>define servicedependency {</FONT>
<BR><FONT SIZE=2> host_name s.test.com</FONT>
<BR><FONT SIZE=2> service_description functionality_LB <--- Parent </FONT>
<BR><FONT SIZE=2> dependent_service_description functionality_cl1 <--- Child </FONT>
<BR><FONT SIZE=2> execution_failure_criteria w,c,u </FONT>
<BR><FONT SIZE=2> notification_failure_criteria w,c,u</FONT>
<BR><FONT SIZE=2> dependent_hostgroup_name hg_test</FONT>
<BR><FONT SIZE=2>}</FONT>
</P>
<P><FONT SIZE=2>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. </FONT></P>
<P><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2>Hope that helps / makes sense. </FONT>
</P>
<P><FONT SIZE=2>Regards,</FONT>
<BR><FONT SIZE=2>Deborah </FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Gaertner, Joern [<A HREF="mailto:joern.gaertner@wirecard.com">mailto:joern.gaertner@wirecard.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: 27 January 2011 15:27</FONT>
<BR><FONT SIZE=2>To: nagios-users@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2>Subject: [Nagios-users] servicedependency problem</FONT>
</P>
<P><FONT SIZE=2>Hi,</FONT>
</P>
<P><FONT SIZE=2>I have a problem with servicedendencies.</FONT>
</P>
<P><FONT SIZE=2>My config looks like this:</FONT>
</P>
<P><FONT SIZE=2>define servicedependency {</FONT>
<BR><FONT SIZE=2> host_name s.test.com</FONT>
<BR><FONT SIZE=2> execution_failure_criteria w,c,u</FONT>
<BR><FONT SIZE=2> service_description functionality_LB</FONT>
<BR><FONT SIZE=2> dependent_service_description functionality_cl1</FONT>
<BR><FONT SIZE=2> notification_failure_criteria w,c,u</FONT>
<BR><FONT SIZE=2> dependent_hostgroup_name hg_test</FONT>
<BR><FONT SIZE=2>}</FONT>
</P>
<P><FONT SIZE=2>If I am not wrong this should translate to:</FONT>
</P>
<P><FONT SIZE=2>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.</FONT></P>
<P><FONT SIZE=2>But it doesn't work.</FONT>
</P>
<P><FONT SIZE=2>functionality_LB is in state OK.</FONT>
</P>
<P><FONT SIZE=2>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.</FONT></P>
<P><FONT SIZE=2>Does anyone know what is going wrong here?</FONT>
</P>
<P><FONT SIZE=2>Thanks</FONT>
</P>
<P><FONT SIZE=2>Jörn</FONT>
<BR><FONT SIZE=2>------------------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!</FONT>
<BR><FONT SIZE=2>Finally, a world-class log management solution at an even better price-free!</FONT>
<BR><FONT SIZE=2>Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! </FONT></P>
<P><FONT SIZE=2><A HREF="http://p.sf.net/sfu/arcsight-sfd2d" TARGET="_blank">http://p.sf.net/sfu/arcsight-sfd2d</A></FONT>
<BR><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Nagios-users mailing list</FONT>
<BR><FONT SIZE=2>Nagios-users@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2><A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users" TARGET="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</A></FONT>
<BR><FONT SIZE=2>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. </FONT>
<BR><FONT SIZE=2>::: Messages without supporting info will risk being sent to /dev/null</FONT>
</P>
<BR>
***************************************************************************<BR>
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. <BR>
<BR>
Any unauthorised distribution or copying is strictly prohibited. <BR>
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. <BR>
<BR>
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. <BR>
<BR>
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.<BR>
<BR>
Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA<BR>
***************************************************************************<BR>
</BODY>
</HTML>