Multiple Checks for Host
-
dbcummings
- Posts: 130
- Joined: Thu Dec 13, 2018 8:37 am
Multiple Checks for Host
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?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Multiple Checks for Host
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.
-
dbcummings
- Posts: 130
- Joined: Thu Dec 13, 2018 8:37 am
Re: Multiple Checks for Host
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Multiple Checks for Host
I can understand this but there is no way to have a host with multiple check commands defined.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.
-
dbcummings
- Posts: 130
- Joined: Thu Dec 13, 2018 8:37 am
Re: Multiple Checks for Host
So, we couldn't create a custom plugin that did both checks?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Multiple Checks for Host
Oh for sure that is possible, I was saying there is no way to define this in Nagios.dbcummings wrote:So, we couldn't create a custom plugin that did both checks?
Yes, you could create your own solution is a custom plugin.
-
dbcummings
- Posts: 130
- Joined: Thu Dec 13, 2018 8:37 am
Re: Multiple Checks for Host
Thanks! Please close.