]> granicus.if.org Git - icinga2/commitdiff
ITL: nwc_health_report attribute requires a value
authorYannick Charton <tontonitch-pro@yahoo.fr>
Thu, 16 Feb 2017 22:58:13 +0000 (23:58 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 9 Mar 2017 15:31:28 +0000 (16:31 +0100)
fixes #5015

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
doc/10-icinga-template-library.md
itl/plugins-contrib.d/network-components.conf

index 3493962754ec696781fb6695d6bd8710823fa73c..45d703146c041bdbf486372a78e4cc9032e71ceb 100644 (file)
@@ -2506,7 +2506,7 @@ nwc_health_ifspeed                | **Optional.** Override the ifspeed oid of an interface
 nwc_health_units               | **Optional.** One of %, B, KB, MB, GB, Bit, KBi, MBi, GBi. (used for e.g. mode interface-usage)
 nwc_health_name2               | **Optional.** The secondary name of a component.
 nwc_health_role                        | **Optional.** The role of this device in a hsrp group (active/standby/listen).
-nwc_health_report              | **Optional.** Can be used to shorten the output.
+nwc_health_report              | **Optional.** Can be used to shorten the output. Possible values are: 'long' (default), 'short' (to shorten if available), or 'html' (to produce some html outputs if available)
 nwc_health_lookback            | **Optional.** The amount of time you want to look back when calculating average rates. Use it for mode interface-errors or interface-usage. Without --lookback the time between two runs of check_nwc_health is the base for calculations. If you want your checkresult to be based for example on the past hour, use --lookback 3600.
 nwc_health_warning             | **Optional.** The warning threshold
 nwc_health_critical            | **Optional.** The critical threshold
index 1199df7dd1cbf6c217dbaa72aa9c8f69fff15390..4d3e8cb3eb200558f4d8ac6be0f13536440f364a 100644 (file)
@@ -608,8 +608,8 @@ object CheckCommand "nwc_health" {
                        description = "The role of this device in a hsrp group (active/standby/listen)"
                }
                "--report" = {
-                       set_if = "$nwc_health_report$"
-                       description = "Can be used to shorten the output"
+                       value = "$nwc_health_report$"
+                       description = "Can be used to shorten the output. Possible values are: 'long' (default), 'short' (to shorten if available), or 'html' (to produce some html outputs if available)"
                }
                "--lookback" = {
                        value = "$nwc_health_lookback$"