Monitoring and ESX host

Jon Dustin jdustin at usm.maine.edu
Mon Jul 2 20:19:15 CEST 2007


>>> On 7/2/2007 at 12:03 PM, Aaron Stranberg <a_stranberg at hotmail.com>
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

Here is a snippet of the code I run on ESX3:

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);
}

This is a PERL script, called by the "standard" Hobbit client running
inside the service console. The only ESX-specific parameter I am
watching is overall CPU utilization. The subroutine SendHobbit "prints"
the data to tcp/1984 with the following line:

print SOCK "status $MACHINE.pcpu $COLOR $datenow\npcpuBusy : $util\n";

I was able to compile the Hobbit client on a RedHat box, then ZIP the
client and manually install on ESX. 

Good luck!
-- 

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




More information about the Xymon mailing list