Module: check_mk
Branch: master
Commit: af88ce113e76cabe984d804230c6306c1f757919
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=af88ce113e76ca…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Apr 9 11:59:12 2018 +0200
5831 FIX Fixed RFC1158 MIB from pysnmp library
The shipped pysnmp library (version 4.4.4) had a bug in one of its MIBs,
leading to a Python stacktrace in the Event Console logs and non-working
SNMP trap translation. This has been fixed.
Change-Id: Ibb6a8b02126df6b821530a74655bd15b3221453f
---
.werks/5831 | 12 ++++++++++++
.../patches/0015-pysnmp-RFC1158-snmpInReadOnlys.dif | 10 ++++++++++
2 files changed, 22 insertions(+)
diff --git a/.werks/5831 b/.werks/5831
new file mode 100644
index 0000000..0666fce
--- /dev/null
+++ b/.werks/5831
@@ -0,0 +1,12 @@
+Title: Fixed RFC1158 MIB from pysnmp library
+Level: 1
+Component: packages
+Compatible: compat
+Edition: cre
+Version: 1.5.0i4
+Date: 1523267771
+Class: fix
+
+The shipped pysnmp library (version 4.4.4) had a bug in one of its MIBs,
+leading to a Python stacktrace in the Event Console logs and non-working
+SNMP trap translation. This has been fixed.
diff --git a/omd/packages/python-modules/patches/0015-pysnmp-RFC1158-snmpInReadOnlys.dif
b/omd/packages/python-modules/patches/0015-pysnmp-RFC1158-snmpInReadOnlys.dif
new file mode 100644
index 0000000..82e50e7
--- /dev/null
+++ b/omd/packages/python-modules/patches/0015-pysnmp-RFC1158-snmpInReadOnlys.dif
@@ -0,0 +1,10 @@
+diff -Nur dest.orig/pysnmp-4.4.4/pysnmp/smi/mibs/RFC1158-MIB.py
dest/pysnmp-4.4.4/pysnmp/smi/mibs/RFC1158-MIB.py
+--- dest/pysnmp-4.4.4.orig/pysnmp/smi/mibs/RFC1158-MIB.py 2018-01-03 13:31:46.000000000
+0100
++++ dest/pysnmp-4.4.4/pysnmp/smi/mibs/RFC1158-MIB.py 2018-04-09 11:51:10.815461746 +0200
+@@ -17,5 +17,5 @@
+ snmpInBadTypes = MibScalar((1, 3, 6, 1, 2, 1, 11, 7),
Counter32()).setMaxAccess("readonly")
+ if mibBuilder.loadTexts: snmpInBadTypes.setStatus('mandatory')
+ snmpOutReadOnlys = MibScalar((1, 3, 6, 1, 2, 1, 11, 23),
Counter32()).setMaxAccess("readonly")
+-if mibBuilder.loadTexts: snmpInReadOnlys.setStatus('mandatory')
++if mibBuilder.loadTexts: snmpOutReadOnlys.setStatus('mandatory')
+ mibBuilder.exportSymbols("RFC1158-MIB", snmpOutReadOnlys=snmpOutReadOnlys,
snmpInBadTypes=snmpInBadTypes)