Monitor VMware ESXi?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

jnojr
Cacti User
Posts: 65
Joined: Tue Jul 15, 2008 11:16 am
Location: San Diego, CA
Contact:

Monitor VMware ESXi?

Post by jnojr »

I searched, but that got me 30,000 results, none of which appeared to be relevant, so...

Is anyone monitoring CPU, RAM, disk, network, etc. for an ESXi server?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I believe this info is available via snmp.... should be user created scripts/templates already. If not, you can learn how to make them: http://docs.cacti.net/
jnojr
Cacti User
Posts: 65
Joined: Tue Jul 15, 2008 11:16 am
Location: San Diego, CA
Contact:

Post by jnojr »

BSOD2600 wrote:I believe this info is available via snmp
ESXi does not have an SNMP implementation other than sending traps, from what I can tell. Hence my question.

Is anyone actually doing this?
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

There is a way you can enable SNMP on ESX3i. Let me dig up the way to do it. I will post a link shortly.

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

here is how you do it. I have done this on all of my ESX3i servers and it works great.

app

http://www.virtualizationadmin.com/arti ... nsole.html

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
jnojr
Cacti User
Posts: 65
Joined: Tue Jul 15, 2008 11:16 am
Location: San Diego, CA
Contact:

Post by jnojr »

Thanks, apperrault. I know about the "hidden" console, and have enabled SSH so I don't have to mess with it :-) But everything I find about SNMP says that it does not support gets. If you got your server to respond to regular SNMP gets, could you share how? I am at the most recent firmware ( build 158869 )
jnojr
Cacti User
Posts: 65
Joined: Tue Jul 15, 2008 11:16 am
Location: San Diego, CA
Contact:

Post by jnojr »

BTT, still looking for info on how to monitor ESXi with cacti.
jnojr
Cacti User
Posts: 65
Joined: Tue Jul 15, 2008 11:16 am
Location: San Diego, CA
Contact:

Post by jnojr »

BTT
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

hey there,
I was wrong. I do not have my ESXi servers on Cacti. I thought i did, but it was Nagios that has them for monitoring. I am running into the same problems you are with adding them to Cacti. Sorry for the confusion.

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
X505
Posts: 39
Joined: Fri Jun 29, 2007 3:53 pm
Contact:

Post by X505 »

http://www.hypervisor.fr/?p=424
it's in french but easy to translate ;)
jnojr
Cacti User
Posts: 65
Joined: Tue Jul 15, 2008 11:16 am
Location: San Diego, CA
Contact:

Post by jnojr »

X505 wrote:http://www.hypervisor.fr/?p=424
it's in french but easy to translate ;)
Holy Cow, thanks X505!!! My French is more than a little rusty but I can muddle through enough :-)
jnojr
Cacti User
Posts: 65
Joined: Tue Jul 15, 2008 11:16 am
Location: San Diego, CA
Contact:

Post by jnojr »

patters
Posts: 9
Joined: Tue Dec 05, 2006 10:34 am

Post by patters »

How do I compile the NAGIOS plugin for Windows?
I discovered that you can't use the ActiveState Perl provided by the VI Perl Toolkit - Makefile.PL doesn't like the Perl binary path containing spaces I think.
So I've set up ActivePerl on a separate machine and installed nmake. I got the makefile created ok and installed the dependencies using ppm.

But when I try and test the compile I get this:

Code: Select all

C:\temp\Nagios-Plugin-0.30>nmake test

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cp lib/Nagios/Plugin/ExitResult.pm blib\lib\Nagios\Plugin\ExitResult.pm
cp lib/Nagios/Plugin/Functions.pm blib\lib\Nagios\Plugin\Functions.pm
cp lib/Nagios/Plugin/Threshold.pm blib\lib\Nagios\Plugin\Threshold.pm
cp lib/Nagios/Plugin/Range.pm blib\lib\Nagios\Plugin\Range.pm
cp lib/Nagios/Plugin/Getopt.pm blib\lib\Nagios\Plugin\Getopt.pm
cp lib/Nagios/Plugin/Performance.pm blib\lib\Nagios\Plugin\Performance.pm
cp lib/Nagios/Plugin/Config.pm blib\lib\Nagios\Plugin\Config.pm
cp lib/Nagios/Plugin.pm blib\lib\Nagios\Plugin.pm
        C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'bl
ib\lib', 'blib\arch')" t/*.t
t/check_stuff.....................ok
t/Nagios-Plugin-01................ok
t/Nagios-Plugin-02................ok
t/Nagios-Plugin-03................ok
t/Nagios-Plugin-04................ok
t/Nagios-Plugin-Functions-01......ok
t/Nagios-Plugin-Functions-02......ok
t/Nagios-Plugin-Functions-03......ok
t/Nagios-Plugin-Getopt-01.........ok
t/Nagios-Plugin-Getopt-02.........ok
t/Nagios-Plugin-Getopt-03.........ok
t/Nagios-Plugin-Getopt-04.........ok
t/Nagios-Plugin-Performance-02....ok
t/Nagios-Plugin-Performance.......ok 1/149
#   Failed test 'warn okay'
#   at t/Nagios-Plugin-Performance.t line 219.
#          got: '-1.1e-005:0.001'
#     expected: '-1.1e-05:0.001'

#   Failed test 'warn okay'
#   at t/Nagios-Plugin-Performance.t line 221.
#          got: '430:4.3e+025'
#     expected: '430:4.3e+25'
t/Nagios-Plugin-Performance.......NOK 135/149# Looks like you failed 2 tests of
149.
t/Nagios-Plugin-Performance.......dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 133, 135
        Failed 2/149 tests, 98.66% okay
t/Nagios-Plugin-Range.............ok
t/Nagios-Plugin-Threshold.........ok
Failed Test                   Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
t/Nagios-Plugin-Performance.t    2   512   149    2  133 135
Failed 1/16 test scripts. 2/881 subtests failed.
Files=16, Tests=881,  8 wallclock secs ( 0.00 cusr +  0.00 csys =  0.00 CPU)
Failed 1/16 test programs. 2/881 subtests failed.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0xff'
Stop.

C:\temp\Nagios-Plugin-0.30>
I'm presuming that -1.1e-005:0.001 is equal to -1.1e-05:0.001, and it's just a minor formatting difference in the versions of Perl so I've compiled it and it seems to be installed. The problem is that it won't install on VI Perl Toolkit.
Can I just transplant the files? I'm guessing not...
mk6032
Posts: 1
Joined: Mon Dec 29, 2008 9:20 am
Location: Chattanooga, TN

Post by mk6032 »

If you have multiple esxi servers with different root passwords, hostnames, etc.. how do you input the values into the data input method individually? Hopefully I didn't overlook something obvious.
bushidoka
Posts: 1
Joined: Wed Sep 30, 2009 1:12 pm

Post by bushidoka »

Anyone do any serious playing with this yet?

http://www.vmware.com/support/developer/viperltoolkit/

I think some of the other tools listed here use this kit, but I'm just wondering if anyone has played with it more directly.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests