]> granicus.if.org Git - icinga2/commitdiff
Add new -r parameter for esxi_hardware command
authorNapsty <ck@claudiokuenzler.com>
Fri, 10 May 2019 11:46:11 +0000 (13:46 +0200)
committerNapsty <ck@claudiokuenzler.com>
Fri, 10 May 2019 11:46:11 +0000 (13:46 +0200)
itl/plugins-contrib.d/virtualization.conf

index bdbc7598c779973574fd496ae9ad0912a349a4af..19a249db8cccd18bf6d6548e96f8291b0114a871 100644 (file)
@@ -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