Thanks for replying. It looks like I managed to get it working. Nagios was complaining because I had spaces in between "define servicedependency" and the first "{". So this works:<br><br>define servicedependency{
<br>        host_name                       db<br>        name                            production-database-dependency<br>        service_description             MySQL Database<br>        dependent_host_name             www
<br>        dependent_service_description   Ad-hoc Crawler<br>        execution_failure_criteria      u,c<br>        notification_failure_criteria   w,u,c<br>        }<br><br>define servicedependency{<br>        use                             production-database-dependency
<br>        name                            matcher-dependency<br>        dependent_host_name             ind<br>        dependent_service_description   Matcher<br>        execution_failure_criteria      u,c<br>        notification_failure_criteria   w,u,c
<br>        }<br><br><br>And this doesn't:<br>define servicedependency<br>{<br>        host_name                       db<br>        name                            production-database-dependency<br>        service_description             MySQL Database
<br>        dependent_host_name             www<br>        dependent_service_description   Ad-hoc Crawler<br>        execution_failure_criteria      u,c<br>        notification_failure_criteria   w,u,c<br>}<br><br>define servicedependency
<br>{<br>        use                             production-database-dependency<br>        name                            matcher-dependency<br>        dependent_host_name             ind<br>        dependent_service_description   Matcher
<br>        execution_failure_criteria      u,c<br>        notification_failure_criteria   w,u,c<br>}<br><br>--Jeff Orr<br>Attributor Corporation<br><br><div><span class="gmail_quote">On 5/21/07, <b class="gmail_sendername">
Jeff Shumard - DefenseWeb Technologies</b> <<a href="mailto:jeff.shumard@defenseweb.com">jeff.shumard@defenseweb.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">










<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">You need to create a dependency config for
each dependent service by host.  You will not be able to group multiple dependent
services on different hosts in the same configuration.  You need to separate them.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:nagios-users-bounces@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users-bounces@lists.sourceforge.net</a>
[mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users-bounces@lists.sourceforge.net</a>] <b><span style="font-weight: bold;">
On Behalf Of </span></b>Jeff Orr<br>
<b><span style="font-weight: bold;">Sent:</span></b> Monday, May 21, 2007 10:56
AM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users@lists.sourceforge.net</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [Nagios-users] Multiple
dependent services for one service</span></font></p>

</div><div><span class="e" id="q_112afdabc0672252_1">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hello<br>
<br>
I am running into a problem with service dependencies on our Nagios
installation. We have multiple services in our server backend that are located
on different hosts, but all these services depend on the same service: the
production database server on db1. <br>
<br>
Is there a way to make multiple dependency mappings onto the same service? I.e.
foo:apache depends on db1:mysql, bar:crawler depends on db1:mysql, baz:tomcat
depends on db1:mysql? I see how you can make foo:service1 depend on
bar:service2 and baz:service3, but not the other way. I tried using inheritance
in the service dependencies file, but Nagios complains horribly and won't
start.<br>
<br>
Error: Could not add object property in file '/usr/local/nagios/etc/servicedependencies.cfg'
on line 18.<br>
<br>
Thanks in advance!<br>
--Jeff Orr<br>
Attributor Corporation </span></font></p>

</span></div></div>

</div>


<br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by DB2 Express<br>Download DB2 Express C - the FREE version of DB2 express and take<br>control of your XML. No limits. Just data. Click to get it now.
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://sourceforge.net/powerbar/db2/" target="_blank">http://sourceforge.net/powerbar/db2/</a><br>_______________________________________________<br>Nagios-users mailing list
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" 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>