Multiple Checks for Host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Multiple Checks for Host

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Multiple Checks for Host

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Multiple Checks for Host

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Multiple Checks for Host

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Multiple Checks for Host

Post by dbcummings »

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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Multiple Checks for Host

Post by dbcummings »

Thanks! Please close.
Locked