mirror of https://github.com/Icinga/icinga2.git
parent
81013e4ebe
commit
d3da9f1688
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue