From 2332bc30d098ba16df0e2349958626d3144856a0 Mon Sep 17 00:00:00 2001 From: Napsty Date: Fri, 10 May 2019 13:46:11 +0200 Subject: [PATCH] Add new -r parameter for esxi_hardware command --- itl/plugins-contrib.d/virtualization.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/itl/plugins-contrib.d/virtualization.conf b/itl/plugins-contrib.d/virtualization.conf index bdbc7598c..19a249db8 100644 --- a/itl/plugins-contrib.d/virtualization.conf +++ b/itl/plugins-contrib.d/virtualization.conf @@ -32,6 +32,10 @@ object CheckCommand "esxi_hardware" { value = "$esxi_hardware_ignore$" description = "comma-separated list of elements to ignore" } + "-r" = { + set_if = "$esxi_hardware_regex$" + description = "Allow regular expression lookups of elements in ignore list" + } "-p" = { set_if = "$esxi_hardware_perfdata$" description = "collect performance data for pnp4nagios" @@ -64,6 +68,7 @@ object CheckCommand "esxi_hardware" { vars.esxi_hardware_host = "$address$" vars.esxi_hardware_port = 5989 + vars.esxi_hardware_regex = false vars.esxi_hardware_perfdata = false vars.esxi_hardware_nopower = false vars.esxi_hardware_novolts = false -- 2.40.0