]> granicus.if.org Git - icinga2/commitdiff
Allow setting the SNMP version for check_iftraffic.pl
authorDennis Lichtenthäler <dennis.lichtenthaeler@stiftung-tannenhof.de>
Tue, 28 May 2019 09:08:37 +0000 (11:08 +0200)
committerDennis Lichtenthäler <dennis.lichtenthaeler@stiftung-tannenhof.de>
Tue, 28 May 2019 09:08:37 +0000 (11:08 +0200)
This is not supported in check_iftraffic.pl master yet
but there's a pull request at https://github.com/NETWAYS/check_iftraffic/pull/4

itl/plugins-contrib.d/network-components.conf

index 69a0b492b13f91a604cbc8efc2528055ef75ea32..e9f73ca6bda9b67744f26415d20bb588a62f717c 100644 (file)
@@ -297,6 +297,10 @@ object CheckCommand "iftraffic" {
                        value = "$iftraffic_community$"
                        description = "SNMP community. Defaults to 'public' if omitted."
                }
+               "-V" = {
+                       value = "$iftraffic_version$"
+                       description = "SNMP version. Defaults to '1' if omitted."
+               }
                "-i" = {
                        value = "$iftraffic_interface$"
                        description = "Interface name."