This may or may not help...<br><br>Re: VMWare ESX: msg#00464
<br><a href="http://osdir.com/ml/monitoring.hobbit/2007/msg00464.html">http://osdir.com/ml/monitoring.hobbit/2007/msg00464.html</a><br><br clear="all">Josh Luthman<br>Office: 937-552-2340<br>Direct: 937-552-2343<br>1100 Wayne St<br>
Suite 1337<br>Troy, OH 45373<br><br>Those who don't understand UNIX are condemned to reinvent it, poorly.<br>--- Henry Spencer<br>
<br><br><div class="gmail_quote">On Tue, Jan 13, 2009 at 11:36 AM, Jon Dustin <span dir="ltr"><<a href="mailto:jdustin@usm.maine.edu">jdustin@usm.maine.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
>>> On 1/12/2009 at 10:38 PM, in message <496C491C.0B6 : 45 : 32950>, "Everett,<br>
<div class="Ih2E3d">Vernon" <<a href="mailto:Vernon.Everett@woodside.com.au">Vernon.Everett@woodside.com.au</a>> wrote:<br>
> Hi all<br>
><br>
> Has anybody had any success monitoring ESX hosts yet?<br>
</div><div class="Ih2E3d">> In particular, I am looking for HBA and disk stats, CPU, memory, etc.<br>
> The usual suspects.<br>
<br>
</div>I decided to use a "standard" Hobbit client running on the service console, then add my own customizations:<br>
<br>
- use vdf for disk space monitoring instead of df (picks up VMDK volumes)<br>
<br>
- use esxtop to get CPU usage for entire ESX box<br>
<br>
Here is a snippet I wrote for parsing ESXTOP output:<br>
<br>
my $esxtop = "sudo /usr/bin/esxtop -b -d $interval";<br>
open(CMD,"$esxtop |") || die "error - could not open $esxtop   $!\n";<br>
my $count = 0;<br>
while( <CMD> ) {<br>
        chomp;<br>
        s/\"//g;<br>
        my (@row) = split/\,/;<br>
        $count++;<br>
        if ( $count <= 2 ) { next; }    # skip 1st few results, just titles and 100% values<br>
        my $util = int($row[9]);        # round to INT, because RRD does not like floating-point<br>
        &SendHobbit($util);<br>
        if ( $verbose ) { print "util = $util\n"; }<br>
}<br>
<br>
I hope this helps, please don't flame my crappy code...  Enjoy!<br>
<font color="#888888"><br>
--<br>
<br>
<br>
Jon Dustin - Network Specialist<br>
University of Southern Maine<br>
Portland, ME  207-780-4152<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
<br>
To unsubscribe from the hobbit list, send an e-mail to<br>
<a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br>
<br>
<br>
</div></div></blockquote></div><br>