General Options

option description
-s HOST, --host HOST vSphere service address to connect to
-o PORT, --port PORT Port to connect on
-u USER, --user USER User name to use when connecting to host
-p PASSWORD, --password Password to use when connecting to host, can also be set by env VSPHERE_PASS
-nossl, --disable-ssl-verification Disable ssl host certificate verification
--sessionfile FILE it caches sessionId in FILE to avoid logging in and out so much

Common Options

option description
--vihost VIHOST name of the ESXi Host as seen by the vCenter
--vimtype VIMTYPE the object type to check,
it’s a managed entity like: HostSystem, Datacenter or VirtualMachine
--vimname VIMNAME the name of the ManagedEntity of vimtype
--warning WARNING warning threshold
--critical CRITICAL critical threshold
--match-method search,match,fullmatch Some commands have --allowed or --banned options, which accept a REGEX as an argument. This option modifies the behavior of the regex. For more information, refer to Python’s re.search, re.match, and re.fullmatch documentation. The default value is ‘search’.

Environment Variables

var description
CONNECT_NOFAIL if set a connection error exits with status OK
TIMEOUT Global timeout of the plugin in seconds, defaults to 30
VSPHERE_PASS default value for --password option