Another nagios/bash script that verifies if a cluster has performed a failover. This one is used for any microsoft cluster.
A simple nagios/bash script to check if a RedHat/CentOS cluster has failedover.It uses the output from the clustat command.
The usage is simple the script name and service, example:
How to setup Cluster on Glassfish v3
This how to imposes that you already have glassfish v3 setup and:
– running under the user “fish”
– have ssh key trust between both servers (howto setup that)
To setup glassfish it is as simple as downloading .zip file and unzip into a folder, the importat
steps is to setup the path variables etc…
I did this setup on CentOS 6 / RedHat 6 (64x)
Set remote admin (on the DAS)
# asadmin enable-secure-admin
# service glassfish restart
To find out if your Microsoft cluster did a failover is a boring task to go in the eventviewer or logs. Well I wrote a script that does just that
all it needs is check_nt NC_NET plugin on the server and nagios.
I tested with Windows Server 2008 and 2003 and NC_NET 4.x
Hope its helpfull for everyone.