Page 1 of 1

Service dependency

Posted: Mon Mar 16, 2015 9:50 am
by druizm
Hello,

I would like to know if I can configure Nagios to do a double servicedependency: in one side, some services are dependent of a master service (for example, if SSH is up, then nagios must check 3 other services like NIS-Client, NFS-Client and iptables...); in the other side, if master service (SSH) is down, nagios should check other services (http, https, etc).

I have configure my nagios for servicedependency but I have only get good results when "master" service is up. Then, dependend services are checked. However, if "master" services is down, I don't know how configure nagios (and servicedependency) to check others services.

Thanks.

Re: Service dependency

Posted: Mon Mar 16, 2015 10:18 am
by jolson
May I ask you to be a little more specific? I am not sure I understand your use case. Just to clarify, do you mean that:
1. When <process> is up, monitor these other <3 processes>
2. When <process> is down, monitor these other <2 processes> but NOT the original <3 processes>

Is that correct? Or would you like to monitor the <2 processes> AND <3 processes>.