| 1 |
# centreon-vmware |
| 2 |
|
| 3 |
"centreon-vmware" is a free and open source project. The project can be used with Centreon and all monitoring softwares compatible with Nagios plugins. |
| 4 |
It's a Perl daemon in charged to get back VMWare indicators. This program uses the SDK Perl provided by VMWare. |
| 5 |
|
| 6 |
The connector could get following indicators: |
| 7 |
* For ESX Server: |
| 8 |
* Current alarms |
| 9 |
* CPU usage |
| 10 |
* Memory usage |
| 11 |
* Swap usage |
| 12 |
* Interface trafics |
| 13 |
* Count VMs |
| 14 |
* Health status |
| 15 |
* Global status |
| 16 |
* Uptime |
| 17 |
* For Virtual Machines: |
| 18 |
* CPU usage |
| 19 |
* Memory usage |
| 20 |
* Swap usage |
| 21 |
* IOPs on datastores |
| 22 |
* Limits configured (CPU, memory and disks) |
| 23 |
* Snapshot age and consolidation |
| 24 |
* Thinprovisioning configuration |
| 25 |
* VMTools state |
| 26 |
* For Datastores: |
| 27 |
* Usage |
| 28 |
* IOPs |
| 29 |
* Usage in bytes/s |
| 30 |
* Snapshost sizes |
| 31 |
* For Cluster: |
| 32 |
* Operations on virtual machines (Clone, VMotion,...) |
| 33 |
* For Datacenter: |
| 34 |
* Current alarms |
| 35 |
|
| 36 |
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). |
| 37 |
|
| 38 |
Please follow the documentation for the installation: https://github.com/centreon/centreon-vmware/blob/master/doc/en/installation/index.rst |
| 39 |
|
| 40 |
## Examples |
| 41 |
|
| 42 |
Check vmtools states of virtual machines (with name matching the regexp 'prd'): |
| 43 |
|
| 44 |
$ 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 |
| 45 |
WARNING: 1 VM with VMTools not installed | |
| 46 |
vmtools not installed: |
| 47 |
prd-Reporting - 10.0.0.1 [description xxxx] |
| 48 |
|
| 49 |
Check datastore IOPs of virtual machines (with name matching the regexp 'centreon-central-1|Formation'): |
| 50 |
|
| 51 |
$ 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 |
| 52 |
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 |
| 53 |
checking virtual machine 'test-migration' |
| 54 |
[connection state connected][power state poweredOn] |
| 55 |
max total latency is 2.00 ms |
| 56 |
datastore 'INTEGRATION' 0.41 read iops, 4.84 write iops |
| 57 |
datastore 'ISOs' 0.00 read iops, 0.00 write iops |
| 58 |
checking virtual machine 'woot' |
| 59 |
[connection state connected][power state poweredOn] |
| 60 |
max total latency is 23.00 ms |
| 61 |
datastore 'DSI' 0.02 read iops, 0.67 write iops |
| 62 |
|
| 63 |
Check the health of ESX Servers: |
| 64 |
|
| 65 |
$ 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' |
| 66 |
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 |
| 67 |
checking host 'srvi-clus-esx-n1.int.centreon.com' |
| 68 |
status connected |
| 69 |
315 health checks are green, 0 total health issue(s) found, 0 yellow health issue(s) found, 0 red health issue(s) found |
| 70 |
checking host 'srvi-clus-esx-n2.int.centreon.com' |
| 71 |
status connected |
| 72 |
315 health checks are green, 0 total health issue(s) found, 0 yellow health issue(s) found, 0 red health issue(s) found |
| 73 |
checking host 'srvi-clus-esx-n3.int.centreon.com' |
| 74 |
status connected |
| 75 |
202 health checks are green, 0 total health issue(s) found, 0 yellow health issue(s) found, 0 red health issue(s) found |
| 76 |
checking host 'srvi-clus-esx-n4.int.centreon.com' |
| 77 |
status connected |
| 78 |
202 health checks are green, 0 total health issue(s) found, 0 yellow health issue(s) found, 0 red health issue(s) found |