Module: check_mk
Branch: master
Commit: 5906923a7e38492402ccd7bc09ef2a41bb59d794
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5906923a7e3849…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Jul 2 10:52:32 2015 +0200
#2322 FIX mkeventd: MIBs are now only loaded if SNMP Traps translation is activated
Right now the mkeventd sometimes has problems loading mib files which
lead to errors like "list index out of range". The error can now be bypassed
by deactivating the option <i>Translate SNMP traps</i>.
The error itself will get fixed in a following werk.
---
.werks/2322 | 14 ++++++++++++++
ChangeLog | 3 +++
mkeventd/bin/mkeventd | 2 +-
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/.werks/2322 b/.werks/2322
new file mode 100644
index 0000000..c549912
--- /dev/null
+++ b/.werks/2322
@@ -0,0 +1,14 @@
+Title: mkeventd: MIBs are now only loaded if SNMP Traps translation is activated
+Level: 1
+Component: ec
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i3
+Date: 1435826874
+
+Right now the mkeventd sometimes has problems loading mib files which
+lead to errors like "list index out of range". The error can now be bypassed
+by deactivating the option <i>Translate SNMP traps</i>.
+
+The error itself will get fixed in a following werk.
diff --git a/ChangeLog b/ChangeLog
index 084f217..a6f1929 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -61,6 +61,9 @@
* 2369 FIX: Fix exception in BI availability via table "Hostname
Aggregations"
* 2370 FIX: Fix computation of "in downtime" and "acknownledged"
of hosts in BI aggregations...
+ Event Console:
+ * 2322 FIX: mkeventd: MIBs are now only loaded if SNMP Traps translation is
activated...
+
HW/SW-Inventory:
* 2367 FIX: win_system: Fixed exception when non-UTF-8 sequences are contained agent
output
diff --git a/mkeventd/bin/mkeventd b/mkeventd/bin/mkeventd
index 3bc6802..6812da7 100755
--- a/mkeventd/bin/mkeventd
+++ b/mkeventd/bin/mkeventd
@@ -2616,7 +2616,7 @@ class StatusServer:
def handle_command_reload(self):
with lock_configuration:
load_configuration()
- if opt_snmptrap:
+ if opt_snmptrap and g_config['translate_snmptraps']:
g_event_server.load_mibs()
g_event_server.compile_rules(g_config["rules"],
g_config["rule_packs"])
g_status_server.reload_configuration()