<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi Jim,<br><br>Thanks for clarifying to me et al, I will definitely give this a shot. <br><br>I'm sure this will benefit the others who thought of building this config in their Nagios, especially for a newbie like I... :-) <br><br>Cheers, <br>DB <br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Jim Avery <jim@jimavery.me.uk><br><b><span style="font-weight: bold;">To:</span></b> Dei Bertine <deibertine@yahoo.com&g
 t;<br><b><span style="font-weight: bold;">Cc:</span></b> nagios-users@lists.sourceforge.net<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, May 6,
 2009 11:47:01 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Nagios-users] Nagios Service Dependencies<br></font><br>
2009/5/7 Dei Bertine <<a ymailto="mailto:deibertine@yahoo.com" href="mailto:deibertine@yahoo.com">deibertine@yahoo.com</a>>:<br>> Basic question guys:<br>><br>> Which file do you normally place your service dependencies in?<br>><br><span>> It stated here: <a target="_blank" href="http://nagios.sourceforge.net/docs/2_0/dependencies.html">http://nagios.sourceforge.net/docs/2_0/dependencies.html</a></span><br>> to place in objects cfg file which I thought placing it in my nagios.cfg????<br>><br>> But when I did, it complained about this error after running -v:<br>> Error in configuration file 'nagios.cfg' - Line 2859 (NULL value)<br>><br>><br>> Here's a sample of my definition:<br>> define servicedependency{<br>>      &n
 bsp; host_name                      
 ciscoasa-router<br>>        service_description             PING<br>>        dependent_host_name             ciscosw-router<br>>        dependent_service_description   PING<br>>        execution_failure_criteria      o<br>>        notification_failure_criteria   w,u<br>>        }<br>><br>> Please advise.<br>><br>> Thank you!<br>> DB<br><br>I would put service dependencies in a file called something like<br>'servicedep
 endencies.cfg'.<br><br>in nagios.cfg, you need a pointer to this new file, for example:<br><br>cfg_file=/usr/local/nagios/etc/objects/servicedependencies.cfg<br><br>The
 nagios.cfg file should only contain the main configuration file<br>options which you'll find documented in<br><span><a target="_blank" href="http://nagios.sourceforge.net/docs/3_0/configmain.html">http://nagios.sourceforge.net/docs/3_0/configmain.html</a></span><br><br>But ... I'm not convinced you should need service dependencies for<br>'ping' from one host to another.  Nagios handles this sort of thing<br>automatically if you configure the host parent relationships.  See:<br><br><span><a target="_blank" href="http://nagios.sourceforge.net/docs/3_0/networkreachability.html">http://nagios.sourceforge.net/docs/3_0/networkreachability.html</a></span><br><br>hth,<br><br>Jim<br></div></div></div><br>



      </body></html>