diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index 96a18be0b..a5b27658c 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -928,7 +928,7 @@ snmp_timeout | **Optional.** The command timeout in seconds. Defaults The Plugins contrib collects various contributed command definitions. -These check commands assume that the global constant named `PluginsContribDir` +These check commands assume that the global constant named `PluginContribDir` is set to the path where the user installs custom plugins and can be enabled by uncommenting the corresponding line in icinga2.conf. ## IPMI Devices diff --git a/etc/icinga2/constants.conf.cmake b/etc/icinga2/constants.conf.cmake index fad8c0d5e..07969349a 100644 --- a/etc/icinga2/constants.conf.cmake +++ b/etc/icinga2/constants.conf.cmake @@ -15,7 +15,7 @@ const ManubulonPluginDir = "@ICINGA2_PLUGINDIR@" /* The directory which you use to store additional plugins which ITL provides user contributed command definitions for. * Check the documentation, chapter "Plugins Contribution", for details. */ - const PluginsContribDir = "@ICINGA2_PLUGINDIR@" + const PluginContribDir = "@ICINGA2_PLUGINDIR@" /* Our local instance name. By default this is the server's hostname as returned by `hostname --fqdn`. * This should be the common name from the API certificate. diff --git a/itl/plugins-contrib.d/ipmi.conf b/itl/plugins-contrib.d/ipmi.conf index fd9ee3b92..5c9646ad7 100644 --- a/itl/plugins-contrib.d/ipmi.conf +++ b/itl/plugins-contrib.d/ipmi.conf @@ -21,7 +21,7 @@ object CheckCommand "ipmi-sensor" { import "plugin-check-command" import "ipv4-or-ipv6" - command = [ PluginsContribDir + "/check_ipmi_sensor" ] + command = [ PluginContribDir + "/check_ipmi_sensor" ] arguments = { "-H" = { diff --git a/itl/plugins-contrib.d/network-components.conf b/itl/plugins-contrib.d/network-components.conf index 6f9b02d79..2fba3162d 100644 --- a/itl/plugins-contrib.d/network-components.conf +++ b/itl/plugins-contrib.d/network-components.conf @@ -20,7 +20,7 @@ object CheckCommand "interfacetable" { import "plugin-check-command" - command = [ PluginsContribDir + "/check_interface_table_v3t" ] + command = [ PluginContribDir + "/check_interface_table_v3t" ] arguments = { "-H" = { diff --git a/itl/plugins-contrib.d/operating-system.conf b/itl/plugins-contrib.d/operating-system.conf index 1bbae6882..b51dcef24 100644 --- a/itl/plugins-contrib.d/operating-system.conf +++ b/itl/plugins-contrib.d/operating-system.conf @@ -20,7 +20,7 @@ object CheckCommand "mem" { import "plugin-check-command" - command = [ PluginsContribDir + "/check_mem.pl" ] + command = [ PluginContribDir + "/check_mem.pl" ] arguments = { "-u" = { diff --git a/itl/plugins-contrib.d/virtualization.conf b/itl/plugins-contrib.d/virtualization.conf index 89e5efb63..e30637074 100644 --- a/itl/plugins-contrib.d/virtualization.conf +++ b/itl/plugins-contrib.d/virtualization.conf @@ -20,7 +20,7 @@ object CheckCommand "esxi_hardware" { import "plugin-check-command" - command = [ PluginsContribDir + "/check_esxi_hardware.py" ] + command = [ PluginContribDir + "/check_esxi_hardware.py" ] arguments = { "-H" = {