Xymon Mailing List Archive search

ESX Hosts

list Josh Luthman
Tue, 13 Jan 2009 11:55:11 -0500
Message-Id: <user-1b5d0a382c61@xymon.invalid>

This may or may not help...

Re: VMWare ESX: msg#00464
http://osdir.com/ml/monitoring.hobbit/2007/msg00464.html

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer


On Tue, Jan 13, 2009 at 11:36 AM, Jon Dustin <user-d8c63a8259c1@xymon.invalid> wrote:
On 1/12/2009 at 10:38 PM, in message <496C491C.0B6 : 45 : 32950>,
"Everett,
Vernon" <user-9da1a1882f49@xymon.invalid> wrote:
Hi all

Has anybody had any success monitoring ESX hosts yet?
In particular, I am looking for HBA and disk stats, CPU, memory, etc.
The usual suspects.
I decided to use a "standard" Hobbit client running on the service console,
then add my own customizations:

- use vdf for disk space monitoring instead of df (picks up VMDK volumes)

- use esxtop to get CPU usage for entire ESX box

Here is a snippet I wrote for parsing ESXTOP output:

my $esxtop = "sudo /usr/bin/esxtop -b -d $interval";
open(CMD,"$esxtop |") || die "error - could not open $esxtop   $!\n";
my $count = 0;
while( <CMD> ) {
       chomp;
       s/\"//g;
       my (@row) = split/\,/;
       $count++;
       if ( $count <= 2 ) { next; }    # skip 1st few results, just titles
and 100% values
       my $util = int($row[9]);        # round to INT, because RRD does not
like floating-point
       &SendHobbit($util);
       if ( $verbose ) { print "util = $util\n"; }
}

I hope this helps, please don't flame my crappy code...  Enjoy!

--


Jon Dustin - Network Specialist
University of Southern Maine
Portland, ME  XXX-XXX-XXXX