summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Lorbach <alorbach@adiscon.com>2008-03-04 10:36:59 +0000
committerAndre Lorbach <alorbach@adiscon.com>2008-03-04 10:36:59 +0000
commitd88634be6bd7e0c1d156d6f9afc1bebc163fd4d9 (patch)
treeda4bee3b19a08d43fb2b870912e05788c94eec0d
parentbc7d8ccebb0a9e7726a9c85cb10746d7407c28d8 (diff)
downloadrsyslog-d88634be6bd7e0c1d156d6f9afc1bebc163fd4d9.tar.gz
rsyslog-d88634be6bd7e0c1d156d6f9afc1bebc163fd4d9.tar.xz
rsyslog-d88634be6bd7e0c1d156d6f9afc1bebc163fd4d9.zip
Changed default SyslogMessageOID to 1.3.6.1.4.1.9.9.41.2.0.1 which means
CISCO-SYSLOG-MIB::clogMessageGenerated. This is a better choice as default OID for now. We will add our own MIB in a later step.
-rw-r--r--plugins/omsnmp/omsnmp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/omsnmp/omsnmp.c b/plugins/omsnmp/omsnmp.c
index bc9e30ca..67c63b64 100644
--- a/plugins/omsnmp/omsnmp.c
+++ b/plugins/omsnmp/omsnmp.c
@@ -86,7 +86,12 @@ typedef struct _instanceData {
uchar szTargetAndPort[MAXHOSTNAMELEN+1]; /* IP/hostname + Port,needed format for SNMP LIB */
uchar szCommunity[OMSNMP_MAXCOMMUNITYLENGHT+1]; /* Snmp Community */
uchar szEnterpriseOID[OMSNMP_MAXOIDLENGHT+1]; /* Snmp Enterprise OID - default is (1.3.6.1.4.1.3.1.1 = enterprises.cmu.1.1) */
- uchar szSyslogMessageOID[OMSNMP_MAXOIDLENGHT+1]; /* Snmp OID used for the Syslog Message - default is 1.3.6.1.4.1 - .iso.org.dod.internet.private.enterprises */
+ uchar szSyslogMessageOID[OMSNMP_MAXOIDLENGHT+1]; /* Snmp OID used for the Syslog Message - default is 1.3.6.1.4.1.9.9.41.2.0.1 - CISCO-SYSLOG-MIB::clogMessageGenerated
+ * You will need the CISCO-SYSLOG-MIB and CISCO-SMI mibs installed on the receiver side in order to decode this mib.
+ * Downloads of these mib files can be found here:
+ * http://www.oidview.com/mibs/9/CISCO-SYSLOG-MIB.html
+ * http://www.oidview.com/mibs/9/CISCO-SMI.html
+ */
int iPort; /* Target Port */
int iSNMPVersion; /* SNMP Version to use */
int iTrapType; /* Snmp TrapType or GenericType */
@@ -366,7 +371,7 @@ CODE_STD_STRING_REQUESTparseSelectorAct(1)
/* Copy SyslogMessage OID */
if (pszSyslogMessageOID == NULL) /* Failsave */
- strncpy( (char*) pData->szSyslogMessageOID, "1.3.6.1.6.3.1.1.4.3", sizeof("1.3.6.1.6.3.1.1.4.3") );
+ strncpy( (char*) pData->szSyslogMessageOID, "1.3.6.1.4.1.9.9.41.2.0.1", sizeof("1.3.6.1.4.1.9.9.41.2.0.1") );
else /* Copy Target */
strncpy( (char*) pData->szSyslogMessageOID, (char*) pszSyslogMessageOID, strlen((char*) pszSyslogMessageOID) );