[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing :: View topic - check_esx : VMware ESX checks
Cheshire Cat Computing
http://steveshipway.org/forum/

check_esx : VMware ESX checks
http://steveshipway.org/forum/viewtopic.php?f=20&t=415
Page 1 of 2

Author:  stevesh [ Wed Nov 17, 2004 4:39 pm ]
Post subject:  check_esx : VMware ESX checks

This plugin is available from . It also provides output in a MRTG-friendly format (use the -M flag for MRTG, -N for Nagios).

UPDATE: For the latest version, look on . Here you will find examples as well.

Nagios examples:
check_esx -H esx-hostname -C community -l LIST
check_esx -H esx-hostname -C community -v vhostname -l MEM -w 10% -c 5%
check_esx -H esx-hostname -C community -v vhostname -l STATE
MRTG examples:
check_esx -M -H esx-hostname -C community -v vhostname -l CPU
(returns CPU seconds used)
check_esx -M -H esx-hostname -C community -v vhostname -l MEM
(returns Memory avaiable, memory total)

Author:  stevesh [ Thu Nov 18, 2004 10:34 am ]
Post subject: 

Plans for updated version:

1) Include extra checks for the host-MIB (number of processes, load average, memory) so that they are all conveniently in one place.
2) Have the CPU check, when run in Nagios mode, take two samples 10 sec apart and extrapolate a percentage from this which can be thresholded.
3) Add checks for virtual network and disk throughput

Author:  stevesh [ Mon Nov 22, 2004 4:36 pm ]
Post subject: 

Note: This plugin requires the Net::SNMP Perl module to be installed. This is how I access the SNMP. If you get a big error message about 'Cannot locate Net::SNMP' then this is your problem.

Author:  stevesh [ Tue Nov 23, 2004 9:53 am ]
Post subject: 

OK, I thought it was obvious, but apparently it isn't.

You need to enable SNMP on your ESX console before this plugin will work.

Login to the console as root and run 'snmpsetup.sh default' to get the daemons running. Then configure /etc/snmp/snmpd.conf and restart them. There is lots about this in Ch7 of the ESX manual. You may also want to change the community from the default of 'public'.
[/b]

Author:  stevesh [ Fri Oct 14, 2005 8:07 am ]
Post subject: 

For some reason, the vhost name you are giving does not match any of the list returned by SNMP.

Remember it is case sensitive. There is an option to check_esx that returns the list of all known vhosts, but I cant remember it off the top of my head (I'm not in the office at the moment). I think you do the host command without giving the vhost name argument, or something similar - Ill check when I'm next in. I suspect it is a simple case or spelling difference.

Another possibility is that you dont have SNMP properly configured on the vmware server and so check_esx is getting no vhost list at all, although I think that would give a different error message.

Author:  stevesh [ Tue Nov 29, 2005 9:50 am ]
Post subject: 

Hmm - check that your VMWare SNMP agents are running.

You should have snmpd running on the VMWare console server, and also the vmware-snmpd helper agent (this is the one that deals with the 6876 enterprise). Try restarting snmpd and vmware-snmpd (in that order).

Make sure you are querying the VMWare console and not the guest OS!

Make sure you can SNMPwalk the agent. IE, check you have the right community string and that you can get a response from the SNMP daemon.

Author:  markf [ Fri Dec 09, 2005 11:29 pm ]
Post subject:  Can this be used on normal VMWare?

Hi Steve,

I came across this page while trying to find out how to use MRTG and vmware. I have a windows XP host running VMWare workstation 5.5 (i.e. not ESX) and inside this I am running a Linux server as a guest OS. I'm looking for a solution whereby I can monitor certain things like CPU use of the host from inside the guest. Your script says it is for ESX, is there a version what will work in my case?

Thanks in advance for any advice.

Regards,
Mark

Author:  stevesh [ Sat Dec 10, 2005 9:26 am ]
Post subject: 

What we do here is to use a 2-stage process. Each guest is monitored as we would any other standalone server (install agent, set up templates, etc).

Then, we use the check_esx to query SNMP on the vmware console and obtain information like CPU usage by a particular guest, and overall CPU usage on the physical machine.

Finally, due to the dynamic nature of VMware (especially if you use VMotion as we do) I needed to produce a further utility which I have not yet published. That is a perl script which runs every 5 mins, and it queries for all existing guests, plus it has a saved list of past guests. It dynamically recreates some MRTG .cfg files and also fetches CPU, Net and Memory usage information and stores it into multiple .rrd files. MRTG does not actually get involved in the process at all. The .cfg files are then used by routers2 to display some complex userdefined summary graphs over the guests. This has the benefit of holding historical info even for guests no longer in existance or moved to a different server.

I can send you a copy of this last program if you wish? Also, check_esx has been updated and I will upload the new version to the web shortly. The new version is better with CPU stats.

Author:  markf [ Wed Dec 14, 2005 6:18 am ]
Post subject: 


Author:  stevesh [ Wed Dec 14, 2005 11:08 am ]
Post subject: 


Page 1 of 2 All times are UTC + 12 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/