Monitor VMware ESXi?
Moderators: Developers, Moderators
Monitor VMware ESXi?
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?
Is anyone monitoring CPU, RAM, disk, network, etc. for an ESXi server?
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/
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Cacti User
- Posts: 379
- Joined: Fri Feb 16, 2007 11:37 am
- Location: Emeryville, CA
- Contact:
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
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]
[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]
-
- Cacti User
- Posts: 379
- Joined: Fri Feb 16, 2007 11:37 am
- Location: Emeryville, CA
- Contact:
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
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]
[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]
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 )
-
- Cacti User
- Posts: 379
- Joined: Fri Feb 16, 2007 11:37 am
- Location: Emeryville, CA
- Contact:
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
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]
[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]
http://www.hypervisor.fr/?p=424
it's in french but easy to translate
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 enoughX505 wrote:http://www.hypervisor.fr/?p=424
it's in french but easy to translate
http://www.hypervisor.fr/wp-content/upl ... 1/esxi.xml is the template
http://www.hypervisor.fr/wp-content/upl ... 1/esxi.zip is a collection of four Perl scripts.
http://www.hypervisor.fr/wp-content/upl ... 1/esxi.zip is a collection of four Perl scripts.
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:
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...
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>
Can I just transplant the files? I'm guessing not...
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.jnojr wrote:http://www.hypervisor.fr/wp-content/upl ... 1/esxi.xml is the template
http://www.hypervisor.fr/wp-content/upl ... 1/esxi.zip is a collection of four Perl scripts.
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.
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.
Who is online
Users browsing this forum: No registered users and 2 guests