<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY text=#000000 bgcolor=#ffffff>
<DIV align=left><SPAN class=424422500-01032007><FONT face=Arial color=#0000ff size=2>I prefixed the serviced which depended on an SNMP 
service  "SNMP -", then I cobbled a python script to search for those 
services.</FONT></SPAN></DIV>
<DIV align=left><SPAN class=424422500-01032007><FONT face=Arial color=#0000ff size=2>It outputs a single service_dependency_HOSTNAME_SNMP file 
which I put in a service_dependencies folder.</FONT></SPAN></DIV>
<DIV align=left><SPAN class=424422500-01032007><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV align=left><SPAN class=424422500-01032007><FONT face=Arial color=#0000ff size=2>Each time I add a server or service I run this script and 
pass the host name to it.</FONT></SPAN></DIV>
<DIV align=left><SPAN class=424422500-01032007><FONT face=Arial color=#0000ff size=2>It works well, </FONT></SPAN><SPAN class=424422500-01032007><FONT face=Arial color=#0000ff size=2>I'll probably do 
the same for NRPE.</FONT></SPAN></DIV>
<DIV align=left><SPAN class=424422500-01032007><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV align=left><SPAN class=424422500-01032007><FONT face=Arial color=#0000ff size=2>The only thing that stops me sharing the script is that 
it's a real kludge and once it worked I stopped working on 
it.</FONT></SPAN></DIV>
<DIV align=left><SPAN class=424422500-01032007><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV> </DIV>
<DIV align=left><STRONG><FONT face=Verdana size=2>Matthew Joyce</FONT></STRONG> 
<BR><FONT face=Verdana color=#808080 size=1>02 9382 0051</FONT><B> <FONT face=Verdana color=#808080 size=1>|</FONT></B><FONT face=Verdana color=#808080 size=1> IT Manager</FONT><B> <FONT face=Verdana color=#808080 size=1>|</FONT></B><FONT face=Verdana color=#808080 size=1> Children's Cancer 
Institute Australia for Medical Research</FONT> </DIV>
<DIV> </DIV><BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader align=left>
  <HR>
  <FONT face=Tahoma size=2><B>From:</B> 
  nagios-users-bounces@lists.sourceforge.net 
  [mailto:nagios-users-bounces@lists.sourceforge.net] <B>On Behalf Of </B>Andy 
  Shellam (Mailing Lists)<BR><B>Sent:</B> Thursday, 1 March 2007 2:17 
  AM<BR><B>To:</B> Nagios Users Mailing List<BR><B>Subject:</B> [Nagios-users] 
  [Fwd: Re: Service Dependencies - How do you doyours?]<BR></FONT><BR></DIV>
  <DIV></DIV><FONT size=-1><FONT face=Arial>For anyone else that's interested in 
  this, I've raised as a project on Nagios Exchange.<BR>Hopefully should have 
  something up over the weekend!<BR><BR><A class=moz-txt-link-freetext href="http://www.nagiosexchange.org/Configuration.20.0.html?&tx_netnagext_pi1[p_view">http://www.nagiosexchange.org/Configuration.20.0.html?&tx_netnagext_pi1[p_view</A>]=882&tx_netnagext_pi1[page]=10%3A10<BR><BR>Andy.<BR></FONT></FONT><BR>-------- 
  Original Message -------- 
  <TABLE class=moz-email-headers-table cellspacing=0 cellpadding=0 border=0>
    <TBODY>
    <TR>
      <TH valign=baseline nowrap align=right>Subject: </TH>
      <TD>Re: [Nagios-users] Service Dependencies - How do you do yours?</TD></TR>
    <TR>
      <TH valign=baseline nowrap align=right>Date: </TH>
      <TD>Wed, 28 Feb 2007 15:02:09 +0000</TD></TR>
    <TR>
      <TH valign=baseline nowrap align=right>From: </TH>
      <TD>Andy Shellam (Mailing Lists) <A class=moz-txt-link-rfc2396E href="mailto:andy.shellam-lists@mailnetwork.co.uk"><andy.shellam-lists@mailnetwork.co.uk></A></TD></TR>
    <TR>
      <TH valign=baseline nowrap align=right>To: </TH>
      <TD>Hari Sekhon <A class=moz-txt-link-rfc2396E href="mailto:hpsekhon@googlemail.com"><hpsekhon@googlemail.com></A></TD></TR>
    <TR>
      <TH valign=baseline nowrap align=right>CC: </TH>
      <TD>Nagios Users mailinglist <A class=moz-txt-link-rfc2396E href="mailto:nagios-users@lists.sourceforge.net"><nagios-users@lists.sourceforge.net></A></TD></TR>
    <TR>
      <TH valign=baseline nowrap align=right>References: </TH>
      <TD><A class=moz-txt-link-rfc2396E href="mailto:45E594FB.9070006@googlemail.com"><45E594FB.9070006@googlemail.com></A></TD></TR></TBODY></TABLE><BR><BR><PRE>Hari,

I have this exact problem (raised it a few weeks ago.)
I've got it on my to-do list to create a shell script (probably PHP) 
that will create a service_dependencies.cfg file for you with each host 
and it's NRPE services.

I'll try and get round to it this weekend and post on Nagios Exchange.  
I'll probably even post it as a page on my webserver so you won't have 
to have PHP locally.

HTH

Andy.

Hari Sekhon wrote:
> Hi,
>    I'm using NRPE to check a lot of things, but it occurs to me that if 
> nrpe goes down, I will receive a storm of emails about all the things 
> that it checks.
>
> So I want to create service_dependencies which say, for example, "all 
> Ram checks must depend on check serviceX on the same host" where 
> "serviceX" is also an nrpe check that always succeeds.
> Therefore, if NRPE breaks for any reason, it should only alert me once 
> for serviceX
>
> Of course, I'm not sure this could be done in a very easily templated 
> way. I've had a look at the templating docs again but it seems to me 
> that group hosts or service together will create a lattice of 
> dependencies across hosts or services which will probably mean that any 
> broken service on any host will prevent all dependent services from 
> sending notifications for any other host.
>
> Any ideas on this?
>
> -h
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<A class=moz-txt-link-freetext href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</A>
_______________________________________________
Nagios-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A>
<A class=moz-txt-link-freetext href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

!DSPAM:37,45e599b7103001596114515!


</PRE><BR><PRE class=moz-signature>-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834</PRE></BLOCKQUOTE></BODY></HTML>