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

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