Configuring RadiantOne VDS v7.2 Logging to Leverage SNMP Trap Appender

The MIB file is attached.

Below is a sample log4j2 configuration for snmpTrapAppender for VDS. To use this appender:

1. Make a backup of the existing Log4J configuration by navigating to the Main Control Panel -> ZooKeeper tab.
2. Browse to /radiantone/v1/cluster/config/logging.
3. Click Export on the right.
4. The ZooKeeper parent node should be /radiantone/v1/cluster/config/logging.
5. Enter a path to a directory to save the default log4j configuration and a file name.
Note - This file can be imported on the ZooKeeper tab if you want to revert back to the default log4j configuration.
6. Click OK.
7. On the ZooKeeper tab, navigate to /radiantone/v1/cluster/config/logging/log4j2-vds.json.
8. Click Edit Mode on the right and configure your appender as follows:
{
"configuration" : {
"status" : "error",
"packages" : "com.rli.logging.log4j2.plugins",
"appenders" : {
"appender" : [ {
"type" : "RLISNMPTrapAppender",
"name" : "snmpAppender",
"managementHost" : "127.0.0.1",
"managementHostTrapListenPort" : 162,
"enterpriseOID" : "1.3.6.1.4.1.40747",
"genericTrapType" : 6,
"specificTrapType" : 1,
"applicationTrapOID" : "1.3.6.1.4.1.40747.1.1",
"communityString" : "public",
"PatternLayout" : {
"pattern" : "%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1.}:%L - %m%n"
}
} ]
},
"loggers" : {
"logger" : [ {
"name" : "com.rli.slapd.server.VDSServer",
"level" : "INFO"
}],
"root" : {
"level" : "ERROR",
"additivity" : "false",
"includeLocation" : "true",
"AppenderRef" : {
"ref" : "snmpAppender"
}
}
}
}
}

9. Click Save.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.

Articles in this section