diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index 8ee785979..1156c7b2d 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -456,6 +456,7 @@ nscp_params | **Optional.** Parameters for the query. Multiple parameters mu nscp_warn | **Optional.** The warning threshold. nscp_crit | **Optional.** The critical threshold. nscp_timeout | **Optional.** The query timeout in seconds. +nscp_showall | **Optional.** Use with SERVICESTATE to see working services or PROCSTATE for running processes. Defaults to false. ## ntp_time diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 5da777ee0..f393950b0 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -897,10 +897,16 @@ object CheckCommand "nscp" { "-w" = "$nscp_warn$" "-c" = "$nscp_crit$" "-t" = "$nscp_timeout$" + "-d" = { + value = "SHOWALL" + description = "Use with SERVICESTATE to see working services or PROCSTATE for running processes" + set_if = "$nscp_showall$" + } } vars.nscp_address = "$check_address$" vars.nscp_port = 12489 + vars.nscp_showall = false } object CheckCommand "by_ssh" {