Merge pull request #9611 from Icinga/8992

ITL: vmware: support --open_vm_tools_ok, --no_vm_tools_ok
This commit is contained in:
Julian Brost 2023-01-17 14:44:59 +01:00 committed by GitHub
commit 06d0e7fbb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -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 **\<br\>** 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 <br> **Authentication file content:** <br> username=vmuser <br> 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**

View File

@ -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$"
}
}
}