I prefixed the serviced which depended on an SNMP service  "SNMP -",
then I cobbled a python script to search for those services.
It outputs a single service_dependency_HOSTNAME_SNMP file which I put in
a service_dependencies folder.
 
Each time I add a server or service I run this script and pass the host
name to it.
It works well, I'll probably do the same for NRPE.
 
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.
 
 
Matthew Joyce 
02 9382 0051 | IT Manager | Children's Cancer Institute Australia for
Medical Research 
 


________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy
Shellam (Mailing Lists)
        Sent: Thursday, 1 March 2007 2:17 AM
        To: Nagios Users Mailing List
        Subject: [Nagios-users] [Fwd: Re: Service Dependencies - How do
you doyours?]
        
        
        For anyone else that's interested in this, I've raised as a
project on Nagios Exchange.
        Hopefully should have something up over the weekend!
        
        
http://www.nagiosexchange.org/Configuration.20.0.html?&tx_netnagext_pi1[
p_view]=882&tx_netnagext_pi1[page]=10%3A10
        
        Andy.
        
        -------- Original Message -------- 
Subject:        Re: [Nagios-users] Service Dependencies - How do you do
yours?  
Date:   Wed, 28 Feb 2007 15:02:09 +0000 
From:   Andy Shellam (Mailing Lists)
<[EMAIL PROTECTED]>
<mailto:[EMAIL PROTECTED]>      
To:     Hari Sekhon <[EMAIL PROTECTED]>
<mailto:[EMAIL PROTECTED]>      
CC:     Nagios Users mailinglist <[email protected]>
<mailto:[email protected]>     
References:     <[EMAIL PROTECTED]>
<mailto:[EMAIL PROTECTED]>      


        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
        
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
        _______________________________________________
        Nagios-users mailing list
        [email protected]
        https://lists.sourceforge.net/lists/listinfo/nagios-users
        ::: 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!
        
        

        -- 
        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
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to