If traps appear in the snmptrapd log file but not the csiTrapHandler log file, you may need to add additional filters to the nf file. The traps will not appear in the csiTrapHandler file if they do not first appear in the snmptrapd log file. If traps do not appear in the log file for snmptrapd, check your authentication settings. The csiTrapReceiver_info_log will be renamed expiredTrap_info_log when logging is disabled (since the mere existence of csiTrapReceiver_info_log will trigger logging by csiTrapHandler).īoth of these log files can be very useful diagnostic tools to help get your trap receiver rules figured out. Selecting No and clicking Select Logging Options will disable logging to both files. The csiTrapReceiver_info_log file will be used by csiTrapHandler, and the second file, whatever it is named, will be used by the snmptrapd service.
The same approach would be used for SNMP v3 with the difference being the authentication and privacy parameters listed per user following the #Users. We should also note that SNMP v1/v2 was illustrated here for simplicity. The comment says "do not change this next line". This can then be loaded into the trap receiver. When you click the Save button at the bottom of that window, all content including your edited content is saved. After clicking the Generate Config button on the nf page, you can freely edit the content of the window where its generated content is displayed. To include these in our filter, it is necessary to manually edit the nf file ad add one more filter line as illustrated below.
An example that requires additional filters is the UPS MIB defined by RFC 1628.
#SNMP TRAP RECEIVER WIKI MANUAL#
1.3.6.1.4.1* as defined in the nf manual available at.
The traphandle includes the trap filter "default". In this case, it will be passed to the csiTrapHandler for further processing against the trap receive rules. The “traphandle” tells the snmptrapd service what to do with the trap. Yours will be different and set to what you have chosen. This example assumes an SNMP community of “oakpark”. The minimum nf file for receiving SNMPv1 or SNMPv2 traps is as follows: