mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
parent
81013e4ebe
commit
d3da9f1688
@ -1029,6 +1029,8 @@ Custom attributes passed as [command parameters](3-monitoring-basics.md#command-
|
|||||||
Name | Description
|
Name | Description
|
||||||
----------------|--------------
|
----------------|--------------
|
||||||
nscp_path | **Optional.** Can be used to override the NSClient++ on a per-command basis. Defaults to NscpPath.
|
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_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_query | **Required.** The NSClient++ query. Try `nscp client -q x` for a list.
|
||||||
nscp_arguments | **Optional.** An array of query arguments.
|
nscp_arguments | **Optional.** An array of query arguments.
|
||||||
|
@ -27,6 +27,8 @@ object CheckCommand "nscp-local" {
|
|||||||
command = [ NscpPath, "client" ]
|
command = [ NscpPath, "client" ]
|
||||||
|
|
||||||
arguments = {
|
arguments = {
|
||||||
|
"--log" = "$nscp_log_level$"
|
||||||
|
"--load-all" = { set_if ="$nscp_load_all$" }
|
||||||
"-q" = {
|
"-q" = {
|
||||||
value = "$nscp_query$"
|
value = "$nscp_query$"
|
||||||
required = true
|
required = true
|
||||||
@ -38,6 +40,8 @@ object CheckCommand "nscp-local" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
vars.nscp_path = {{ NscpPath }}
|
vars.nscp_path = {{ NscpPath }}
|
||||||
|
vars.nscp_log_level = "critical"
|
||||||
|
vars.nscp_load_all = true
|
||||||
vars.nscp_boot = true
|
vars.nscp_boot = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user