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?
How to monitor servers in HA mode?
-
- Posts: 238
- Joined: Mon Jan 23, 2012 2:02 pm
- Location: Asheville, NC
Re: How to monitor servers in HA mode?
We monitor the VIP, that way when failover occurs and the VIP follows, monitoring of the service is maintained.
--
Griffin Wakem
Griffin Wakem
-
- Posts: 399
- Joined: Thu Sep 01, 2011 9:47 pm
Re: How to monitor servers in HA mode?
I did monitor via the VIP, but it seems I can't monitor through in the cluster?!gwakem wrote:We monitor the VIP, that way when failover occurs and the VIP follows, monitoring of the service is maintained.
should I notice something?
-
- Posts: 238
- Joined: Mon Jan 23, 2012 2:02 pm
- Location: Asheville, NC
Re: How to monitor servers in HA mode?
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.
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
Griffin Wakem
-
- Posts: 115
- Joined: Tue Aug 16, 2011 2:43 pm
Re: How to monitor servers in HA mode?
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....
Alternately you could use check_multi:
http://exchange.nagios.org/directory/Pl ... ti/details
But it takes a little bit of configuration....
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: How to monitor servers in HA mode?
CGraham & gwakem,
Thank you both for sharing your experiences.
Thank you both for sharing your experiences.
-
- Posts: 399
- Joined: Thu Sep 01, 2011 9:47 pm
Re: How to monitor servers in HA mode?
Thanks, I will tr......y hard and see if succeed.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....
