host-runtime
Description
The host-runtime provides various checks against a hosts runtime. It’s basically
the same as --select runtime
from check_vmware_esx against a host.
Options
Besides the general options this command supports the following options:
option | description |
---|---|
--vihost HOSTNAME |
(optional) the name of the HostSystem to check, if omitted the first HostSystem found is checked, which is handy if you run this check directly against the host |
--mode MODE |
what to check to perform, one of con , health , issues , status , temp , version , maintenance |
--maintenance-state STATE |
one of OK, WARNING, CRITICAL, UNKNOWN. The status to use when the host is in maintenance mode, this defaults to UNKNOWN except when –mode maintenance, then the default is CRITICAL |
Examples
check_vsphere host-runtime \
-s vcenter.example.com -u naemon@vsphere.local -nossl \
--vihost esx-2.example.com --mode status
CRITICAL: overall status is RED
check_vsphere host-runtime \
-s vcenter.example.com -u naemon@vsphere.local -nossl \
--vihost esx-2.example.com --mode con
OK: connection state is 'connected'
check_vsphere host-runtime \
-s vcenter.example.com -u naemon@vsphere.local -nossl \
--vihost esx-2.example.com --mode health
OK: All 53 health checks are GREEN: memory: 10, storage: 9, other: 1, voltage: 12, fan: 4, temperature: 15, power: 2
check_vsphere host-runtime \
-s vcenter.example.com -u naemon@vsphere.local -nossl \
--vihost esx-2.example.com --mode status
CRITICAL: overall status is RED
check_vsphere host-runtime \
-s vcenter.example.com -u naemon@vsphere.local -nossl \
--vihost esx-2.example.com --mode temp
OK: All temperature sensors green
| 'Memory Device 77 DIMMD2'=43.0;;;; ...