]> granicus.if.org Git - icinga2/commitdiff
ITL: Add 'SHOWALL' command argument for 'nscp'
authorDirk Goetz <dirk.goetz@netways.de>
Mon, 20 Apr 2015 12:01:36 +0000 (14:01 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 20 Apr 2015 12:19:09 +0000 (14:19 +0200)
fixes #9115

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
doc/7-icinga-template-library.md
itl/command-plugins.conf

index 8ee7859797177d3d120663cb76a2087c82ea7c26..1156c7b2de2515b2958eb8913c8f5f6b3bf6207c 100644 (file)
@@ -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.
 
 
 ## <a id="plugin-check-command-ntp-time"></a> ntp_time
index 5da777ee081bf406b19fcf4f20a952560956a3a7..f393950b04b60a086cd3dee30c044ca099089905 100644 (file)
@@ -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" {