Nagios XI Service Dependencies... for host down

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Nagios XI Service Dependencies... for host down

Post by JakeHatMacys »

So I'm being tasked again to look at turning off service checks when the host is down. Right now when one of our servers goes down we'll ticket on 9 service URLs configured from that box. We don't want to do this... I was looking at setting up a service Ping and going down the route of service dependencies but we inherit all our Service Checks by host group and this doesn't look like it's mapping out properly using that method when you take one service check in core and put it into a service dependency. In fact I think it created 100's of duplicate service checks last time I tried that....

So my question is would it be easier to modify the check_xi_service_http check to ping the host first and if it fails exit with a okay to avoid even checking the URL status... if ping comes back good only then proceed with the URL check.

I know that's a bit out of the realm of support but was curious if anyone would know what that would look like and if it's even feasible or do you have a better solution for Service Dependency on Host checks? We've scripted automation for adding and deleting our services which is why we want to keep them binded to Host Groups. That way when we add the host to the group it inherits the service checks. And we just have to delete the host to remove them. We'd like to avoid further complicating that proccess if possible:


Command View

$USER1$/check_http -H $HOSTADDRESS$ $ARG1$

ARG1:
-f ok -I xx.xx.xx.xx -u '/FSSRestService.svc?singleWsdl' -p 2503


Is what we're doing currently.

Thoughts on possibly modifying like mentioned above?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios XI Service Dependencies... for host down

Post by tmcdonald »

I actually tackled this exact request a while ago:

https://github.com/NagiosEnterprises/na ... 724930a3e7

and if you are running the latest XI 5 or have otherwise upgraded core to (I think) 4.1.0 then you should have the option available.

Original thread is here: https://support.nagios.com/forum/viewto ... 16&t=32941
Former Nagios employee
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Nagios XI Service Dependencies... for host down

Post by JakeHatMacys »

tmcdonald wrote:I actually tackled this exact request a while ago:

https://github.com/NagiosEnterprises/na ... 724930a3e7

and if you are running the latest XI 5 or have otherwise upgraded core to (I think) 4.1.0 then you should have the option available.

Original thread is here: https://support.nagios.com/forum/viewto ... 16&t=32941
My dev box is running the upgraded XI 5.02 or whatever the latest release is. Is this option on by default??? Or do I need to tweak it in the config file? I don't see an option in the gui to change anything. Wasn't clear to me in that thread how it was being implemented.

I added "host_down_disable_service_checks=1" to my config file. Assuming all the other changes came with the upgrade.
Last edited by JakeHatMacys on Tue Oct 13, 2015 9:28 am, edited 1 time in total.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios XI Service Dependencies... for host down

Post by tmcdonald »

You would set host_down_disable_service_checks=1 in your nagios.cfg and run service nagios restart for it to take effect.
Former Nagios employee
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Nagios XI Service Dependencies... for host down

Post by JakeHatMacys »

tmcdonald wrote:You would set host_down_disable_service_checks=1 in your nagios.cfg and run service nagios restart for it to take effect.
Thanks, yeah I went back a few pages and found that. I'll see how she goes, it's been restarted so waiting now to see if any run.

Thanks again.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI Service Dependencies... for host down

Post by hsmith »

Let us know how it works for you.

Thanks!
Former Nagios Employee.
me.
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Nagios XI Service Dependencies... for host down

Post by JakeHatMacys »

hsmith wrote:Let us know how it works for you.

Thanks!
Working great, thanks again for being responsive and listening to your customers. Getting stuff like this done in other tools... well isn't easy.

We're very impressed with the support & guidance you guys have given us since installing XI last year.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios XI Service Dependencies... for host down

Post by tmcdonald »

Oh stop, you're making us blush :oops:
Former Nagios employee
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios XI Service Dependencies... for host down

Post by rkennedy »

We're glad to hear you're a happy customer! I am going to close this thread now, but feel free to open another whenever you need assistance.
Former Nagios Employee
Locked