[Nagios-devel] Service parents...

Andreas Ericsson ae at op5.se
Mon Sep 17 15:15:24 UTC 2012


On 09/17/2012 09:41 AM, Johannes Dagemark wrote:
> On 2012-09-14 18:45, Andreas Ericsson wrote:
>> For the (extremely) common "depend on a client version check" thing,
>> that would look something like this:
>> define service {
>>      use            some-suitable-template
>>      host_name      A
>>      description    NRPE Disk /
>>      parents        NRPE Version Check
>> }
> Can I do
> 
> define service {
>      use            some-suitable-template
>      host_name      A
>      description    PING
>      parents        switchA;PING
> }
> 

Yes.

> or do I need a service dependency for that?
> 

No, but you could use one if you want. However, the ping scenario is
a bit dubious since services implicitly depend on their host being up
and with switches it's natural to use ping to do that check.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.




More information about the Nagios-devel mailing list