项目作者: centreon

项目描述 :
Centreon VMWare connector to check ESX server, VCenter and VMWare guest resources
高级语言: Perl
项目地址: git://github.com/centreon/centreon-vmware.git
创建时间: 2015-08-31T14:33:51Z
项目社区:https://github.com/centreon/centreon-vmware

开源协议:Apache License 2.0

下载


centreon-vmware

“centreon-vmware” is a free and open source project. The project can be used with Centreon and all monitoring softwares compatible with Nagios plugins.
It’s a Perl daemon in charged to get back VMWare indicators. This program uses the SDK Perl provided by VMWare.

The connector could get following indicators:

  • For ESX Server:
    • Current alarms
    • CPU usage
    • Memory usage
    • Swap usage
    • Interface trafics
    • Count VMs
    • Health status
    • Global status
    • Uptime
  • For Virtual Machines:
    • CPU usage
    • Memory usage
    • Swap usage
    • IOPs on datastores
    • Limits configured (CPU, memory and disks)
    • Snapshot age and consolidation
    • Thinprovisioning configuration
    • VMTools state
  • For Datastores:
    • Usage
    • IOPs
    • Usage in bytes/s
    • Snapshost sizes
  • For Cluster:
    • Operations on virtual machines (Clone, VMotion,…)
  • For Datacenter:
    • Current alarms

You can check one or X entities for each checks. Moreover, you can also “scope” it. It means: i can check the virtual machines of a datacenter(s) and/or a cluster(s).

Please follow the documentation for the installation: https://github.com/centreon/centreon-vmware/blob/master/doc/en/installation/index.rst

Examples

Check vmtools states of virtual machines (with name matching the regexp ‘prd’):

  1. $ perl centreon_plugins.pl --plugin=apps::vmware::connector::plugin --connector-hostname=127.0.0.1 --container=default --verbose --mode=tools-vm --display-description --vm-hostname='prd' --filter
  2. WARNING: 1 VM with VMTools not installed |
  3. vmtools not installed:
  4. prd-Reporting - 10.0.0.1 [description xxxx]

Check datastore IOPs of virtual machines (with name matching the regexp ‘centreon-central-1|Formation’):

  1. $ perl centreon_plugins.pl --plugin=apps::vmware::connector::plugin --connector-hostname=127.0.0.1 --container=default --verbose --mode=datastore-vm --vm-hostname='woot|test-migration' --filter
  2. OK: All virtual machines are ok | 'max_total_latency_test-migration'=2.00ms;;;0; 'riops_test-migration_INTEGRATION'=0.41iops;;;0; 'wiops_test-migration_INTEGRATION'=4.84iops;;;0;4.84 'riops_test-migration_ISOs'=0.00iops;;;0; 'wiops_test-migration_ISOs'=0.00iops;;;0;0.00 'max_total_latency_woot'=23.00ms;;;0; 'riops_woot'=0.02iops;;;0; 'wiops_woot'=0.67iops;;;0;0.67
  3. checking virtual machine 'test-migration'
  4. [connection state connected][power state poweredOn]
  5. max total latency is 2.00 ms
  6. datastore 'INTEGRATION' 0.41 read iops, 4.84 write iops
  7. datastore 'ISOs' 0.00 read iops, 0.00 write iops
  8. checking virtual machine 'woot'
  9. [connection state connected][power state poweredOn]
  10. max total latency is 23.00 ms
  11. datastore 'DSI' 0.02 read iops, 0.67 write iops

Check the health of ESX Servers:

  1. $ perl centreon_plugins.pl --plugin=apps::vmware::connector::plugin --connector-hostname=127.0.0.1 --container=default --verbose --mode=health-host --esx-hostname='.*' --filter --disconnect-status='ok'
  2. OK: 0 total health issue(s) found - All ESX hosts are ok | 'total_problems'=0;;;0;1034 'problems_srvi-clus-esx-n1.int.centreon.com'=0;;;0;315 'problems_yellow_srvi-clus-esx-n1.int.centreon.com'=0;;;0;315 'problems_red_srvi-clus-esx-n1.int.centreon.com'=0;;;0;315 'problems_srvi-clus-esx-n2.int.centreon.com'=0;;;0;315 'problems_yellow_srvi-clus-esx-n2.int.centreon.com'=0;;;0;315 'problems_red_srvi-clus-esx-n2.int.centreon.com'=0;;;0;315 'problems_srvi-clus-esx-n3.int.centreon.com'=0;;;0;202 'problems_yellow_srvi-clus-esx-n3.int.centreon.com'=0;;;0;202 'problems_red_srvi-clus-esx-n3.int.centreon.com'=0;;;0;202 'problems_srvi-clus-esx-n4.int.centreon.com'=0;;;0;202 'problems_yellow_srvi-clus-esx-n4.int.centreon.com'=0;;;0;202 'problems_red_srvi-clus-esx-n4.int.centreon.com'=0;;;0;202
  3. checking host 'srvi-clus-esx-n1.int.centreon.com'
  4. status connected
  5. 315 health checks are green, 0 total health issue(s) found, 0 yellow health issue(s) found, 0 red health issue(s) found
  6. checking host 'srvi-clus-esx-n2.int.centreon.com'
  7. status connected
  8. 315 health checks are green, 0 total health issue(s) found, 0 yellow health issue(s) found, 0 red health issue(s) found
  9. checking host 'srvi-clus-esx-n3.int.centreon.com'
  10. status connected
  11. 202 health checks are green, 0 total health issue(s) found, 0 yellow health issue(s) found, 0 red health issue(s) found
  12. checking host 'srvi-clus-esx-n4.int.centreon.com'
  13. status connected
  14. 202 health checks are green, 0 total health issue(s) found, 0 yellow health issue(s) found, 0 red health issue(s) found