I need a simple script to determine which is the active node in a cluster, something that will return 1 for active node and 0 for inactive.
I've looked at the stuff in /usr/es/cluster and nothing there really does what i want. Any ideas?
In case you're wondering why, this is for automated monitoring. Depending on whether the node is active or not, the monitor will then proceed to check disk, memory, CPU etc but only on the active node.
Thanks in advance
I've looked at the stuff in /usr/es/cluster and nothing there really does what i want. Any ideas?
In case you're wondering why, this is for automated monitoring. Depending on whether the node is active or not, the monitor will then proceed to check disk, memory, CPU etc but only on the active node.
Thanks in advance