check_cluster<br><br>it will check the current status of one or more services and send alerts based on one or both being down<br><br><div class="gmail_quote">On Thu, Mar 4, 2010 at 6:18 PM, Gius, Mark <span dir="ltr"><<a href="mailto:mgius@createspace.com">mgius@createspace.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">I have a problem that pretty much the same as this one from
a couple years back: </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><a href="http://thread.gmane.org/gmane.network.nagios.devel/4167/focus=4168" target="_blank">http://thread.gmane.org/gmane.network.nagios.devel/4167/focus=4168</a></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Basically, I want to only send notifications when both of
these services are in the red:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
define servicedependency{</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
host_name
server0</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
dependent_host_name
server1</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
dependent_service_description service0</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
service_description
service0</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
inherits_parent
0</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
execution_failure_criteria n</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
notification_failure_criteria o</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
}</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
define servicedependency{</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
host_name
server1</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
dependent_host_name
server0</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
dependent_service_description service0</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
service_description
service0</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
inherits_parent 0</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
execution_failure_criteria n</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
notification_failure_criteria o</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">>
}</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Nagios throws an error with the above configuration (which
can be overridden with –x). </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">The thread I reference above talks about using “check_cluster”,
although the documentation on that is a little sparse, and it specifically
references Nagios 2, so it may not have been updated in quite some time.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Is there any better way to achieve this behavior, or is the
solution from two years ago still the way to go?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">-Gius</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>
</div>
<br>------------------------------------------------------------------------------<br>
Download Intel® Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>