]> granicus.if.org Git - icinga2/commitdiff
Feature/itl check snmp options (#5387)
authorYannick Charton <tontonitch-pro@yahoo.fr>
Mon, 14 Aug 2017 15:51:23 +0000 (17:51 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 14 Aug 2017 15:51:23 +0000 (17:51 +0200)
Add missing options for the definition of the ITL snmp CheckCommand

snmp_offset, snmp_output_delimiter and snmp_perf_oids options

doc/10-icinga-template-library.md
itl/command-plugins.conf

index 12574e0173442e268c828944afb4832fe9e27510..96c9fd3cfff05bace5f361319e07827d5f752499 100644 (file)
@@ -1198,6 +1198,9 @@ snmp_rate_multiplier | **Optional.** Converts rate per second. For example, set
 snmp_rate           | **Optional.** Boolean. Enable rate calculation.
 snmp_getnext        | **Optional.** Boolean. Use SNMP GETNEXT. Defaults to false.
 snmp_timeout        | **Optional.** The command timeout in seconds. Defaults to 10 seconds.
+snmp_offset         | **Optional.** Add/substract the specified OFFSET to numeric sensor data.
+snmp_output_delimiter | **Optional.** Separates output on multiple OID requests.
+snmp_perf_oids      | **Optional.** Label performance data with OIDs instead of --label's.
 
 ### snmpv3 <a id="plugin-check-command-snmpv3"></a>
 
index 964a2f256601670a9a30694f810ee70aa6be2c5d..7ccb6e3dce41682549213e3c50f04bde2d1789a4 100644 (file)
@@ -1781,6 +1781,18 @@ object CheckCommand "snmp" {
                        set_if = "$snmp_getnext$"
                        description = "Use SNMP GETNEXT instead of SNMP GET"
                }
+               "--offset" = {
+                       value = "$snmp_offset$"
+                       description = "Add/substract the specified OFFSET to numeric sensor data"
+               }
+               "-D" = {
+                       value = "$snmp_output_delimiter$"
+                       description = "Separates output on multiple OID requests"
+               }
+               "-O" = {
+                       set_if = "$snmp_perf_oids$"
+                       description = "Label performance data with OIDs instead of --label's"
+               }
        }
 
        vars.snmp_address = {{