diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index d8bbdafd7..4f0ee7504 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -1077,7 +1077,6 @@ Custom attributes passed as [command parameters](3-monitoring-basics.md#command- Name | Description ----------------|-------------- -nscp_path | **Optional.** Can be used to override the NSClient++ on a per-command basis. Defaults to NscpPath. nscp_log_level | **Optional.** The log level. Defaults to "critical". nscp_load_all | **Optional.** Whether to load all modules. Defaults to true. nscp_boot | **Optional.** Whether to use the --boot option. Defaults to true. diff --git a/itl/command-nscp-local.conf b/itl/command-nscp-local.conf index 9f1a3f5b2..2ff5ff6e1 100644 --- a/itl/command-nscp-local.conf +++ b/itl/command-nscp-local.conf @@ -24,7 +24,7 @@ if (!globals.contains("NscpPath")) { object CheckCommand "nscp-local" { import "plugin-check-command" - command = [ "$nscp_path$\\nscp.exe", "client" ] + command = [ NscpPath + "\\nscp.exe", "client" ] arguments = { "--log" = "$nscp_log_level$" @@ -39,7 +39,6 @@ object CheckCommand "nscp-local" { "-a" = "$nscp_arguments$" } - vars.nscp_path = {{ NscpPath }} vars.nscp_log_level = "critical" vars.nscp_load_all = true vars.nscp_boot = true