21.20.4 Changing the maximum number of SNMP trap incidents to be saved
Depending on whether you need to keep SNMP trap incidents for a long period of time, you can change the maximum number of SNMP trap incidents to be saved in the database.
- Important
By default, NNMi begins dropping SNMP traps (including syslog messages) after the number of SNMP trap incidents in its database reaches 100,000. Setting this limit to a higher value is not recommended, as doing so can cause NNMi performance degradation. Carefully evaluate the situation before changing the maximum number.
- Organization of this subsection
(1) Changing the maximum number to less than 100,000
To change the maximum number to 50,000:
Edit the following file:
Windows: %NNM_PROPS%\nms-jboss.properties
Linux: $NNM_PROPS/nms-jboss.properties
Look for the following line:
#!com.hp.nnm.events.snmpTrapMaxStoreLimit=100000
Uncomment and edit this line to read as follows:
com.hp.nnm.events.snmpTrapMaxStoreLimit=50000
Save your changes.
Restart NNMi by running the following commands:
ovstop ovstart
(2) Changing the maximum number to more than 100,000
To change the maximum number to 200,000:
Edit the following file:
Windows: %NNM_PROPS%\nms-jboss.properties
Linux: $NNM_PROPS/nms-jboss.properties
Look for the following line:
#!com.hp.nnm.events.snmpTrapEnforce100KLimit=true
Uncomment and edit this line to read as follows, and save the file:
com.hp.nnm.events.snmpTrapEnforce100KLimit=false
Edit the following file:
Windows: %NNM_PROPS%\nms-jboss.properties
Linux: $NNM_PROPS/nms-jboss.properties
Look for the following line:
#!com.hp.nnm.events.snmpTrapMaxStoreLimit=100000
Uncomment and edit this line to read as follows:
com.hp.nnm.events.snmpTrapMaxStoreLimit=200000
Save your changes.
Restart NNMi by running the following commands:
ovstop ovstart
The default value of com.hp.nnm.events.snmpTrapMaxStoreLimit (which sets the upper limit on the number of incidents) is 100,000. In this case, if the number of incidents in the database exceeds 50,000 (50% of the upper limit), 10,000 incidents are deleted in order, started from the oldest incident, and based on the following formula.