Page 1 of 1
Multiple Checks for Host
Posted: Mon Nov 25, 2019 12:41 pm
by dbcummings
Today, the host check uses check_icmp. We are changing this to check the API on the NCPA. We are using that to disable all associated checks for a host if the NCPA is not available. We would like to develop a check that would first check the NCPA. If the NCPA api is unavailable, it would then ping the host to see if it alive. Is something like that possible for host status?
Re: Multiple Checks for Host
Posted: Mon Nov 25, 2019 12:56 pm
by scottwilkerson
There is no way to have multiple checks for a single host but you could add a Ping check as a service for the host so you can always see if the ping is alive.
Re: Multiple Checks for Host
Posted: Mon Nov 25, 2019 1:20 pm
by dbcummings
Well, all of our checks are dependent on the host check. If it fails, they are disabled. So, that wouldn't work. We do this because all of our events are sent to a ticketing system. We don't want to send a bunch of failed checks if we can't reach the NCPA on the host.
Re: Multiple Checks for Host
Posted: Mon Nov 25, 2019 2:00 pm
by scottwilkerson
dbcummings wrote:Well, all of our checks are dependent on the host check. If it fails, they are disabled. So, that wouldn't work. We do this because all of our events are sent to a ticketing system. We don't want to send a bunch of failed checks if we can't reach the NCPA on the host.
I can understand this but there is no way to have a host with multiple check commands defined.
Re: Multiple Checks for Host
Posted: Mon Nov 25, 2019 2:04 pm
by dbcummings
So, we couldn't create a custom plugin that did both checks?
Re: Multiple Checks for Host
Posted: Mon Nov 25, 2019 2:06 pm
by scottwilkerson
dbcummings wrote:So, we couldn't create a custom plugin that did both checks?
Oh for sure that is possible, I was saying there is no way to define this in Nagios.
Yes, you could create your own solution is a custom plugin.
Re: Multiple Checks for Host
Posted: Mon Dec 09, 2019 7:30 am
by dbcummings
Thanks! Please close.