Xymon Mailing List Archive search

Monitoring and ESX host

list Dominique Frise
Wed, 04 Jul 2007 09:23:56 +0200
Message-Id: <user-794fe7bde21c@xymon.invalid>

Aaron Stranberg wrote:
Hello all,
      I am searching for folks that are successfully monitoring aVMware ESX3 host with either the hobbit client or BB client?  I am inthe unfortunate situation of not having a test environment to test withand would appreciate getting a head start on others exeprience.  Anyspecific RPM for hobbit that is known to work on the ESX3 host, detailson dependency packages that were required would be most welcome.

Thanks
-Aaron
Change is good. See what's different about Windows Live Hotmail. Check it out! <www.windowslive-hotmail.com/learnmore/default.html?locale=en-us&ocid=RMT_TAGLM_HMWL_reten_changegood_0607>
Our ESX3 servers run a client compiled on RHEL3.
The user running Hobbit has to be authorized -sudo- to use "esxtop" and "vdf" utilities.
The sections [uptime], [df] and [top] in hobbitclient-linux.sh are modified like this:

...
...
# VMware ESX3 support
vmnix=`uname -r | grep "vmnix"`
...
...
echo "[uptime]"
if [ $vmnix ]; then
    # "uptime" only reports about the ESX console load.
    # Use "esxtop" to report the total load.
    echo `uptime | cut -d: -f1-4`: `sudo esxtop -n 1 -b | head -2 | tail -1 | awk -F\, '{print $5 " " $6 " " $7}' | awk -F\" '{print $2", "$4", "$6}'`
else
    uptime
fi
echo "[who]"
who
echo "[df]"
if [ $vmnix ]; then
    # Use "vdf" to report about vmfs file systems
    sudo /usr/sbin/vdf -P | egrep -v "\/vmfs\/devices|none|tmpfs|shmfs|unknown|iso9660"
else
    df -Pl -x none -x tmpfs -x shmfs -x unknown -x iso9660 | sed -e '/^[^ ][^ 	]*$/{
N
s/[ 	]*\n[ 	]*/ /
}'
fi
...
...
# $TOP must be set, the install utility should do that for us if it exists.
if test "$TOP" != ""
then
     if test -x "$TOP"
     then
         echo "[top]"
         if [ ! $vmnix ]; then
            # Do not use top on ESX3 (only reports about the console)
	   $TOP -b -n 1
         fi
     fi
fi


Dominique
UNIL - University of Lausanne