Service Dependencies - How do you do yours?

Andy Shellam (Mailing Lists) andy.shellam-lists at mailnetwork.co.uk
Wed Feb 28 16:02:09 CET 2007


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=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list