Hello,
We have used host_down_disable_service_checks=1 for all services to go down when 1 device is down. The thing is, we have created a service of our own, a ping, which gives some metrics we need even if the device is down. Can we have 1 service getting metrics even if we have host_down_disable_service_checks=1 and the host is DOWN?
Kind Regards
Disable services when host down
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Disable services when host down
Hi,
Benjamin
That would be a global setting in the main nagios configuration file. However, if wanted to work around it, you can setup a dummy host that is always up using the check_dummy plugin and then hardcode the IP address into the service command ( so it does inherit the ip from the dummy host). That way this service check would keep running if the actual host goes down.Can we have 1 service getting metrics even if we have host_down_disable_service_checks=1 and the host is DOWN?
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Disable services when host down
Hello Benjamin,benjaminsmith wrote:Hi,That would be a global setting in the main nagios configuration file. However, if wanted to work around it, you can setup a dummy host that is always up using the check_dummy plugin and then hardcode the IP address into the service command ( so it does inherit the ip from the dummy host). That way this service check would keep running if the actual host goes down.Can we have 1 service getting metrics even if we have host_down_disable_service_checks=1 and the host is DOWN?
Benjamin
I tried that and inserted around 1000 free variables to 2 hosts pinging on local IP and Nagios didn't co-op very well with it to be honest (didn't even make it to creating all the different commands / services and Nagios started showing issues, no server issues like too much utilization of RAM or CPU, services stopped showing up on devices, etc.).
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Disable services when host down
HI @coitop,
When you say "Nagios didn't co-op very well with it", what type of errors are you getting ( check the /usr/local/nagios/var/nagios.log)? Did you get any errors on Apply Configuration?
Benjamin
When you say "Nagios didn't co-op very well with it", what type of errors are you getting ( check the /usr/local/nagios/var/nagios.log)? Did you get any errors on Apply Configuration?
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!