Installation guide
Appendix A. Check Commands for Customizable Services of Add_ons
87
check_esx_vm
The check_esx3 shell is called with the following syntax:
check_esx3 -B -H <esxname> -C <community> -v <virtualHost>
-l STATE
Output:
OK
VHost <VMname>is up (ID: <id>)
CRITICAL
VHost <VMname>is down (ID: <id>)
Example:
check_esx_vm –H esx -C public –v nsmvm1 –l STATE
VHost nsmvm1 is up (ID: 48)
Status is set to OK if the VM is up.
Status is set to CRITICAL if the VMs are down.
Note:
The VMname is that declared on the ESX server (this name can be different from the NSMaster
hostname).
check_esx_vm_memory
The check_esx3 shell is called with the following syntax:
check_esx3 -B -H <esxname> -C <community> -v <virtualHost>
-l MEM -w <warn>% -c <crit>%
Output:
Memory free: <free>Mb (<percent_free>) [Total available <total>Mb] on
vhost <VMname>
Example:
check_esx_vm_mem –B –H esx –C public –v nsmvm1 –w 20% -c 10%
Memory free: 460.8Mb (90%) [Total available 512Mb] on vhost smvm1
Status is set to WARNING if less than 20% of memory is available.
Status is set to CRITICAL if if less than 10% of memory is available.
Note:
The VMname is that declared on the ESX server (this name can be different from the NSMaster
hostname).