Cluster host NO-VIP

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
byrollo
Posts: 5
Joined: Wed May 15, 2013 6:31 am

Cluster host NO-VIP

Post by byrollo »

Hi,
this is my first installation of nagios core and have some questions.
I have 2 cluster host 192.168.4.112-113, but they don’t expose any VIP IP.
I’d like to show in MAP view a “phantom” host (VIP) with green status if host cluster is alive (192.168.4.112 or 113 responds to PING) and red status if ALL cluster host fails.
Please can you help me? These are my test cfg:

define host{
use generic-windows
host_name test-vip
address 0.0.0.0
parents test-master,test-slave
check_command check-host-alive
}

define host{
use generic-windows
host_name test-master
address 192.168.4.112
check_command check-host-alive
}

define host{
use generic-windows
host_name test-slave
address 192.168.4.113
check_command check-host-alive
}

I’m not able to change “phantom” host (VIP) state, according my requirements and it always show green state in the map even if all cluster host was down.

Thanks for your support
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Cluster host NO-VIP

Post by abrist »

You will most likely have to script a solution using macros and event handlers. You could look at "check_cluster", it should be included in the nagios plugins package.
http://nagiosplugins.org/man/check_cluster
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked