Nagios XI Service Dependencies... for host down
Posted: Mon Oct 12, 2015 1:30 pm
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?
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?