How to monitor servers in HA mode?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

How to monitor servers in HA mode?

Post by xpertech »

It seems I can't successful monitor servers in HA mode(cluster)?

Is it the same way to monitor single server and servers in HA mode?
User avatar
gwakem
Posts: 238
Joined: Mon Jan 23, 2012 2:02 pm
Location: Asheville, NC

Re: How to monitor servers in HA mode?

Post by gwakem »

We monitor the VIP, that way when failover occurs and the VIP follows, monitoring of the service is maintained.
--
Griffin Wakem
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: How to monitor servers in HA mode?

Post by xpertech »

gwakem wrote:We monitor the VIP, that way when failover occurs and the VIP follows, monitoring of the service is maintained.
I did monitor via the VIP, but it seems I can't monitor through in the cluster?!
should I notice something?
User avatar
gwakem
Posts: 238
Joined: Mon Jan 23, 2012 2:02 pm
Location: Asheville, NC

Re: How to monitor servers in HA mode?

Post by gwakem »

You should be able to monitor each individual node in the cluster, but you will get a crit on the passive node, since the application or process you're monitoring for isn't active until HA fail over. In most cases, I have found that monitoring the VIP only for whatever application is enough to verify up status and graph perfdata. For everything else (ie. OS level checking like disk, cpu, etc,) checking the individual nodes should work as intended.

There are a wealth of documents in the library section (http://library.nagios.com/library/produ ... umentation) that should help cover individual situations like those you've posted about.
--
Griffin Wakem
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: How to monitor servers in HA mode?

Post by CGraham »

I've accomplished this by writing a custom check that ran 2 separate checks and compared the results. Critical on Both UP or Down, OK if only one is UP.

Alternately you could use check_multi:
http://exchange.nagios.org/directory/Pl ... ti/details

But it takes a little bit of configuration....
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: How to monitor servers in HA mode?

Post by scottwilkerson »

CGraham & gwakem,

Thank you both for sharing your experiences.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: How to monitor servers in HA mode?

Post by xpertech »

CGraham wrote:I've accomplished this by writing a custom check that ran 2 separate checks and compared the results. Critical on Both UP or Down, OK if only one is UP.

Alternately you could use check_multi:
http://exchange.nagios.org/directory/Pl ... ti/details

But it takes a little bit of configuration....
Thanks, I will tr......y hard and see if succeed. 8-)