When I did this I compiled the hobbit client on the esx box then edited hobbitclient-linux.sh ($BBCLIENTHOME/bin) and added the line:
TOP=esxtop
Just above the line:
"# $TOP must be set, the install utility should do that for us
if it exists."
I am currently looking into a way of getting some output on what virtual machines are actually running on the esx server and what kind of cpu levels etc. they are at but that's on hold atm.
Thanks, Jason.
-----Original Message----- From: Jon Dustin [mailto:jdustin at usm.maine.edu] Sent: 02 July 2007 19:19 To: Aaron Stranberg; hobbit at hswn.dk Subject: [hobbit] Re: Monitoring and ESX host
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk