Services dependient from main service

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
debek
Posts: 1
Joined: Tue Nov 06, 2018 6:28 am

Services dependient from main service

Post by debek »

Hi!
I have main service "NRPE/main" and other dependencies for example: NRPE/ping
I want check NRPE/main and if it is not working do not check other NRPE services.

Is it correct configuration?

define servicedependency {
host_name digit
service_description NRPE/main
dependent_host_name digit
dependent_service_description NRPE/check_rbl,NRPE/git/etc,NRPE/ping,NRPE/roles,NRPE/ssh
execution_failure_criteria o
notification_failure_criteria w,u,c
}

I am asking because if I have got this definition. my checks "RPE/check_rbl,NRPE/git/etc,NRPE/ping,NRPE/roles,NRPE/ssh" don't checking automatically.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Services dependient from main service

Post by npolovenko »

Hello, @debek. That's because you put execution_failure_criteria o. This means if the NRPE/main service is OK don't check any dependent services. You need to change it to: execution_failure_criteria w,u,c.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked