From 44efa90e47f760e69d7713eb890f6178424fdf0b Mon Sep 17 00:00:00 2001 From: chrostek Date: Thu, 26 Jul 2018 20:41:56 +0200 Subject: [PATCH 1/2] Add exclude/include to vmware-esx-soap-host-runtime --- itl/plugins-contrib.d/vmware.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/itl/plugins-contrib.d/vmware.conf b/itl/plugins-contrib.d/vmware.conf index 2663ca5e2..8e6c1061f 100644 --- a/itl/plugins-contrib.d/vmware.conf +++ b/itl/plugins-contrib.d/vmware.conf @@ -686,6 +686,11 @@ object CheckCommand "vmware-esx-soap-host-runtime" { arguments += { "--select" = "runtime" + "--exclude" = "$vmware_exclude$" + "--include" = "$vmware_include$" + "--isregexp" = { + set_if = "$vmware_isregexp$" + } } } From c0679001cc8c51c58633a11a4ae1a6499c220dbc Mon Sep 17 00:00:00 2001 From: chrostek Date: Thu, 26 Jul 2018 20:43:04 +0200 Subject: [PATCH 2/2] Add exclude/include to vmware-esx-soap-host-runtime docs --- doc/10-icinga-template-library.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index bf91bf596..10551b4ee 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -4139,6 +4139,9 @@ vmware_nosession | **Optional.** No auth session -- IT SHOULD BE USED FOR vmware_username | **Optional.** The username to connect to Host or vCenter server. No value defined as default. 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_exclude | **Optional.** Blacklist VMs name. No value defined as default. +vmware_include | **Optional.** Whitelist VMs name. No value defined as default. +vmware_isregexp | **Optional.** Treat blacklist and whitelist expressions as regexp. **vmware-esx-soap-host-runtime-con**