Do not allow to override the nscp path by runtime macros.
This causes the (linux) master to send just "." as $nscp_path$
and the windows client ignores the local global constant NscpPath
being overridden by the master.
Only happens with command_endpoints where runtime macros are passed
from the master to the clients.
fixes #9456
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.
object CheckCommand "nscp-local" {
import "plugin-check-command"
- command = [ "$nscp_path$\\nscp.exe", "client" ]
+ command = [ NscpPath + "\\nscp.exe", "client" ]
arguments = {
"--log" = "$nscp_log_level$"
"-a" = "$nscp_arguments$"
}
- vars.nscp_path = {{ NscpPath }}
vars.nscp_log_level = "critical"
vars.nscp_load_all = true
vars.nscp_boot = true