[hobbit] Virtual hosts, floating IPs, clustering

Anton Burkhalter anton.burkhalter at gmx.net
Sat Aug 13 20:02:29 CEST 2005

Hi David,

What is the reason to report CPU and MEM status for a virtual IP?

These are information’s about real machines with real IP addresses. But 
there are other information’s which should be reported just ones per 
cluster. For example on a Tru64 cluster, the file system is the same on 
all members. It makes sense to send file status information just ones to 
the Hobbit server, using the DEFAULT cluster alias name as the 
originator. The client script can run on every member, but only one 
member will send the status.

Here is a snipplet for such a situation:

### ++ Execute the script on the CFS serving node only on cluster members
if [ -x /usr/sbin/cfsmgr ]; then
set -- $(/usr/sbin/cfsmgr -F raw /)
shift 12
if [ ! "$1" = "$(/bin/hostname -s)" ]; then
exit 0
MyAGENT=`/usr/sbin/cluamgr -s DEFAULTALIAS | head -2 | tail -1 | awk 
'{print $5}' | sed "s/\./,/g"`
MyAGENT=`echo ${MyAGENT}.${MyFCT}"`
MyAGENT=`hostname | sed "s/\./,/g"`
MyAGENT=`echo ${MyAGENT}.${MyFCT}"`

### --



More information about the Xymon mailing list