Service dependency

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
druizm
Posts: 1
Joined: Mon Mar 16, 2015 9:44 am

Service dependency

Post 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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Service dependency

Post 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>.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked