Module: check_mk
Branch: master
Commit: 7ece47be285050333e471e63a462bc9923819443
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7ece47be285050…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jul 15 10:50:34 2015 +0200
#2464 FIX UDP ports for SNMP communication can now be configured via WATO
---
.werks/2464 | 10 ++++++++++
ChangeLog | 1 +
web/plugins/wato/check_mk_configuration.py | 12 ++++++++++++
3 files changed, 23 insertions(+)
diff --git a/.werks/2464 b/.werks/2464
new file mode 100644
index 0000000..bed50f5
--- /dev/null
+++ b/.werks/2464
@@ -0,0 +1,10 @@
+Title: UDP ports for SNMP communication can now be configured via WATO
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i3
+Date: 1436949085
+
+
diff --git a/ChangeLog b/ChangeLog
index b5de20e..13dc5b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -83,6 +83,7 @@
* 1267 FIX: Fixed confirm activating foreign changes dialog...
* 2397 FIX: Fixed wrong confirm text in distributed setup when activating foreign
changes
* 2461 FIX: Service Discovery: Hiding action buttons to rules when user is not
permitted to rulesets
+ * 2464 FIX: UDP ports for SNMP communication can now be configured via WATO
Notifications:
* 2313 FIX: notification bulking: fixed exception for plugins which are not
configured with checkboxes, e.g. sms
diff --git a/web/plugins/wato/check_mk_configuration.py
b/web/plugins/wato/check_mk_configuration.py
index a3462f0..5763922 100644
--- a/web/plugins/wato/check_mk_configuration.py
+++ b/web/plugins/wato/check_mk_configuration.py
@@ -1887,6 +1887,18 @@ register_rule(group,
"is configured with this ruleset will then use the information from
that "
"file instead of using real SNMP. "))
+register_rule(group,
+ "snmp_ports",
+ Integer(
+ minvalue = 1,
+ maxvalue = 65535,
+ default_value = 161
+ ),
+ title = _("UDP port used for SNMP"),
+ help = _("This variable allows you to customize the UDP port to "
+ "be used to communicate via SNMP on a per-host-basis."),
+)
+
group = "agent/" + _("Check_MK Agent")
register_rule(group,