Download Latest Version bb-ESXi_0.3a.tar.gz (10.3 kB)
Email in envelope

Get an email when there's a new version of Xymon Monitor for Vmware ESXi

Home / Alpha
Name Modified Size InfoDownloads / Week
Parent folder
readme.txt 2012-02-21 3.1 kB
bb-ESXi_0.3a.tar.gz 2012-02-21 10.3 kB
bb-ESXi_0.2a.tar.gz 2012-02-20 10.1 kB
bb-ESXi_0.1a.rar 2012-02-16 11.2 kB
Totals: 4 Items   34.7 kB 0
Xymon Server Side monitor scripts for ESXi
Copyright (C) 2009,2010,2011,2012
        Gudmundur Orn Ingvarsson (gudm00@gmail.com)
        Sveinn Gudni Gunnarsson (sveinng@gmail.com)

Special thanks for contributions: Steven Carr, David Baldwin

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

The scripts should be installed into your Hobbit server ext directory.

There are a number of hardcoded variables, first the Xymon/Hobbit server in both perl 
scripts and then the vmware root password, also in both perl scripts.

The following changes are needed to your server configuration files.
You may need to change the hobbitserver.cfg reference if you run a newer Xymon than I.

Add this to hobbitgraphs.cfg/graphs.cfg

[vmwareperf]
        TITLE ESX Statistics
        YAXIS System Load
        DEF:cpu=vmwareperf.rrd:cpu:AVERAGE
        DEF:mem=vmwareperf.rrd:mem:AVERAGE
        LINE2:cpu#FF0000:CPU%
        LINE2:mem#00FF00:Memory%
        COMMENT:\n
        GPRINT:cpu:LAST:CPU Util \: %5.1lf (cur)
        GPRINT:cpu:MAX: \: %5.1lf (max)
        GPRINT:cpu:MIN: \: %5.1lf (min)
        GPRINT:cpu:AVERAGE: \: %5.1lf (avg)\n
        GPRINT:mem:LAST:MEM Util \: %5.1lf (cur)
        GPRINT:mem:MAX: \: %5.1lf (max)
        GPRINT:mem:MIN: \: %5.1lf (min)
        GPRINT:mem:AVERAGE: \: %5.1lf (avg)\n
[vmwarevms]
        TITLE ESX Statistics
        YAXIS System Load
        DEF:on=vmwarevms.rrd:von:AVERAGE
        DEF:off=vmwarevms.rrd:vof:AVERAGE
        LINE2:on#00FF00:Online VMs
        LINE2:off#FF0000:Offline VMs
        COMMENT:\n
        GPRINT:on:LAST:Online    \: %5.1lf (cur)
        GPRINT:on:MAX: \: %5.1lf (max)
        GPRINT:on:MIN: \: %5.1lf (min)
        GPRINT:on:AVERAGE: \: %5.1lf (avg)\n
        GPRINT:off:LAST:Offline    \: %5.1lf (cur)
        GPRINT:off:MAX: \: %5.1lf (max)
        GPRINT:off:MIN: \: %5.1lf (min)
        GPRINT:off:AVERAGE: \: %5.1lf (avg)\n
        
Add vmwareperf and vmwarevms to GRAPHS in hobbitserver.cfg/xymonserver.cfg

Add this to hobbit-launch.cfg/tasks.cfg, one for ESXi servers and another for ESX servers

[esxi]
        ENVFILE /usr/local/xymon/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD $BBHOME/ext/vmtest_esxi.sh
        LOGFILE $BBSERVERLOGS/esxi.log
        INTERVAL 10m
[esx]
        ENVFILE /usr/local/xymon/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD $BBHOME/ext/vmtest_esx.sh
        LOGFILE $BBSERVERLOGS/esx.log
        INTERVAL 10m
        
And finally in your bb-hosts (esxi4 or esxi5 depending on the version)
10.10.10.10	VMHOST	# vmware
10.10.10.50	VMHOST	# esxi
Source: readme.txt, updated 2012-02-21