I'm just curious what sort of vmware you are trying to monitor?

In my experience more recent versions of ESX and ESXi had limited snmp
support and all the good performance data has to be polled through the
web interface.

I have had success using check_esx3 by Op5 developer..
http://www.monitoringexchange.org/cgi-bin/page.cgi?g=2848.html;d=1

It requires that the Infrastructure Perl Toolkit is installed on your
monitoring server but the install is very easy.

I can watch resource utilization across the esx host server and get a
list of VM's and their status.

James Whittington
VC3, Inc.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jason
Lavoie
Sent: Friday, May 08, 2009 9:03 AM
To: opsview-users
Subject: [opsview-users] check_snmp_vmware_* scoping issue

When adding VMWare checking to opsview, I was pleased to find that there
are already plugins included with the package.  Additionally, they
profess to have a feature that allows you to list all the possible ESX
servers on the commandline, and the script will find the vm guest on the
right host.

Unfortunately, there looks to be a scoping bug that clobbers the list of
guests on each vmhost pass.  Here's a quick patch for one of the scripts

to demonstrate the problem:

--- check_snmp_vmware_cpu.orig  2009-05-08 08:56:39.000000000 -0400
+++ check_snmp_vmware_cpu       2009-05-08 08:55:22.000000000 -0400
@@ -232,10 +232,10 @@
     foreach $hostname (@hostnames) {
         next if ( create_snmp_session($hostname) > 0 );
 
-        $response = $s->get_table($oid_namebase);
-        next if !defined($response);
+        my $names = $s->get_table($oid_namebase);
+        next if !defined($names);
 
-        %$response = reverse %$response;
+        %$response = ($response ? %$response : (), reverse %$names);
 
         my ($vmname) = grep( /^$name$/i, keys(%$response) );
         if ($vmname) {


-j

-- 
Jason Lavoie
Ratvarre sbe uver
[email protected]
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/listinfo/opsview-users
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/listinfo/opsview-users

Reply via email to