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?
Nagios XI Service Dependencies... for host down
-
JakeHatMacys
- Posts: 281
- Joined: Thu Sep 25, 2014 3:21 pm
Re: Nagios XI Service Dependencies... for host down
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
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
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.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
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.
Re: Nagios XI Service Dependencies... for host down
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
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.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 again.
Re: Nagios XI Service Dependencies... for host down
Let us know how it works for you.
Thanks!
Thanks!
Former Nagios Employee.
me.
me.
-
JakeHatMacys
- Posts: 281
- Joined: Thu Sep 25, 2014 3:21 pm
Re: Nagios XI Service Dependencies... for host down
Working great, thanks again for being responsive and listening to your customers. Getting stuff like this done in other tools... well isn't easy.hsmith wrote:Let us know how it works for you.
Thanks!
We're very impressed with the support & guidance you guys have given us since installing XI last year.
Re: Nagios XI Service Dependencies... for host down
Oh stop, you're making us blush 
Former Nagios employee
Re: Nagios XI Service Dependencies... for host down
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