Add the --load-all and --log options for nscp-local

fixes #9261
This commit is contained in:
Gunnar Beutner 2015-05-13 08:45:19 +02:00
parent 81013e4ebe
commit d3da9f1688
2 changed files with 6 additions and 0 deletions

View File

@ -1029,6 +1029,8 @@ 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.
nscp_query | **Required.** The NSClient++ query. Try `nscp client -q x` for a list.
nscp_arguments | **Optional.** An array of query arguments.

View File

@ -27,6 +27,8 @@ object CheckCommand "nscp-local" {
command = [ NscpPath, "client" ]
arguments = {
"--log" = "$nscp_log_level$"
"--load-all" = { set_if ="$nscp_load_all$" }
"-q" = {
value = "$nscp_query$"
required = true
@ -38,6 +40,8 @@ object CheckCommand "nscp-local" {
}
vars.nscp_path = {{ NscpPath }}
vars.nscp_log_level = "critical"
vars.nscp_load_all = true
vars.nscp_boot = true
}