21.20.1 Enabling the auto-trim oldest incidents feature (no incident archive)
If the number of incidents (including all types of incidents except SNMP traps and including syslog messages) in the database exceeds 50,000, perform the following procedure to use the automatic trim function for incidents to delete 10,000 incidents. Incidents are deleted in order starting from the oldest incident. Note that this procedure does not create an archive for incidents.
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.snmpTrapAutoTrimStartPercentage=50
Uncomment and edit this line to read as follows:
com.hp.nnm.events.snmpTrapAutoTrimStartPercentage=50
Look for the following line:
#!com.hp.nnm.events.snmpTrapAutoTrimPercentageToDelete=25
Uncomment and edit this line to read as follows:
com.hp.nnm.events.snmpTrapAutoTrimPercentageToDelete=20
Look for the following line:
#!com.hp.nnm.events.snmpTrapAutoTrimSetting=Disabled
- Uncomment and edit this line to read as follows:
com.hp.nnm.events.snmpTrapAutoTrimSetting=TrimOnly
If an archive is necessary, specify TrimAndArchive. -
Find the row that includes the following character string.
com.hp.nnm.events.allowAutoTrimAllIncidents
-
Delete the comment symbol, and make the following correction.
com.hp.nnm.events.allowAutoTrimAllIncidents=true
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.
(com.hp.nnm.events.snmpTrapAutoTrimStartPercentage / 100) X com.hp.nnm.events.snmpTrapMaxStoreLimit X (com.hp.nnm.events.snmpTrapAutoTrimPercentageToDelete / 100) * "X" means multiplication.