Page 1 of 4

Service dependent on host?

Posted: Mon Sep 17, 2018 11:23 am
by rkane
I am looking to create a dependency that works in the attached architecture

Services are applied at the Host Group level. I would like to set up a dependency that says "If any hosts in this host group are down, do not notify on their associated service(s)"

EX - Host1 is down / Host2 is up, service A,B,C on Host1 do not notify though service A,B,C on Host2 do

Re: Service dependent on host?

Posted: Mon Sep 17, 2018 2:53 pm
by scottwilkerson
By default all services do not notify if their own host is down. This is the default behavior, so there is nothing extra to setup

Re: Service dependent on host?

Posted: Mon Sep 17, 2018 3:00 pm
by rkane
scottwilkerson wrote:By default all services do not notify if their own host is down. This is the default behavior, so there is nothing extra to setup
Interesting...I must have some settings messed up then as I'm getting a number of "service unknown" emails before i get the "host down" email. Maybe I need to set a delay on the first service notification?

Re: Service dependent on host?

Posted: Mon Sep 17, 2018 3:23 pm
by scottwilkerson
Or set max_check_attempts to something like 5

Re: Service dependent on host?

Posted: Mon Sep 17, 2018 3:42 pm
by rkane
All hosts and services were at the default 5/1/5 for checks...going to try 5/1/6 for all services
scottwilkerson wrote:Or set max_check_attempts to something like 5

Re: Service dependent on host?

Posted: Mon Sep 17, 2018 3:46 pm
by scottwilkerson
You will want to also make sure "Is Volatile" is set to Off or skip in the CCM.

What version of XI are you running?

Re: Service dependent on host?

Posted: Mon Sep 17, 2018 3:51 pm
by rkane
Thank you, "Is Volatile" is set to off
Some system info:

Code: Select all

Nagios XI version: 5.5.2
XI installed from: source
Release info: <url> 3.10.0-862.11.6.el7.x86_64 x86_64
Red Hat Enterprise Linux Server release 7.5 (Maipo)
Gnome Installed
Apache Information
PHP Version: 5.4.16
Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
scottwilkerson wrote:You will want to also make sure "Is Volatile" is set to Off or skip in the CCM.

What version of XI are you running?

Re: Service dependent on host?

Posted: Mon Sep 17, 2018 4:24 pm
by scottwilkerson
There were a few bugs in versions prior to 5.5.3 that could be related to this as well causing additional unexpected notifications.

Re: Service dependent on host?

Posted: Mon Sep 17, 2018 5:41 pm
by rkane
Good to know - appreciate it!
scottwilkerson wrote:There were a few bugs in versions prior to 5.5.3 that could be related to this as well causing additional unexpected notifications.

Re: Service dependent on host?

Posted: Tue Sep 18, 2018 7:43 am
by scottwilkerson
rkane wrote:Good to know - appreciate it!
scottwilkerson wrote:There were a few bugs in versions prior to 5.5.3 that could be related to this as well causing additional unexpected notifications.
No problem