diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 847d58b27..33fd4820d 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -3948,6 +3948,7 @@ vmware_include | **Optional.** Whitelist VMs. No value defined as defau vmware_isregexp | **Optional.** Treat blacklist and whitelist expressions as regexp. vmware_multiline | **Optional.** Multiline output in overview. This mean technically that a multiline output uses a HTML **\** for the GUI. No value defined as default. vmware_openvmtools | **Optional** Prevent CRITICAL state for installed and running Open VM Tools. +vmware_novmtools | **Optional** Prevent CRITICAL state for missing VMware tools. **vmware-esx-soap-host-check** @@ -5698,6 +5699,7 @@ vmware_username | **Optional.** The username to connect to Host or vCent vmware_password | **Optional.** The username's password. No value defined as default. vmware_authfile | **Optional.** Use auth file instead username/password to session connect. No effect if **vmware_username** and **vmware_password** are defined
**Authentication file content:**
username=vmuser
password=p@ssw0rd vmware_openvmtools | **Optional** Prevent CRITICAL state for installed and running Open VM Tools. +vmware_novmtools | **Optional** Prevent CRITICAL state for missing VMware tools. **vmware-esx-soap-vm-runtime-issues** diff --git a/itl/plugins-contrib.d/vmware.conf b/itl/plugins-contrib.d/vmware.conf index 63ee3fa06..7017c8386 100644 --- a/itl/plugins-contrib.d/vmware.conf +++ b/itl/plugins-contrib.d/vmware.conf @@ -237,9 +237,12 @@ object CheckCommand "vmware-esx-dc-runtime-tools" { "--alertonly" = { set_if = "$vmware_alertonly$" } - "--open-vm-tools" = { + "--open_vm_tools_ok" = { set_if = "$vmware_openvmtools$" } + "--no_vm_tools_ok" = { + set_if = "$vmware_novmtools$" + } } } @@ -1142,9 +1145,12 @@ object CheckCommand "vmware-esx-soap-vm-runtime-tools" { arguments += { "--select" = "runtime" "--subselect" = "tools" - "--open-vm-tools" = { + "--open_vm_tools_ok" = { set_if = "$vmware_openvmtools$" } + "--no_vm_tools_ok" = { + set_if = "$vmware_novmtools$" + } } }