Blame SOURCES/rsyslog-8.24.0-rhbz1165236-snmp-mib.patch

a856a8
@@ -, +, @@ 
a856a8
---
a856a8
 plugins/omsnmp/omsnmp.c | 6 ++++++
a856a8
 1 file changed, 6 insertions(+)
a856a8
--- a/plugins/omsnmp/omsnmp.c	
a856a8
+++ a/plugins/omsnmp/omsnmp.c	
a856a8
@@ -454,6 +454,12 @@ CODESTARTnewActInst
a856a8
 		}
a856a8
 	}
a856a8
 
a856a8
+	/* Init NetSNMP library and read in MIB database */
a856a8
+	init_snmp("rsyslog");
a856a8
+
a856a8
+	/* Set some defaults in the NetSNMP library */
a856a8
+	netsnmp_ds_set_int(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_DEFAULT_PORT, pData->iPort );
a856a8
+
a856a8
 	CHKiRet(OMSRsetEntry(*ppOMSR, 0, (uchar*)strdup((pData->tplName == NULL) ? 
a856a8
 						"RSYSLOG_FileFormat" : (char*)pData->tplName),
a856a8
 						OMSR_NO_RQD_TPL_OPTS));
a856a8
--