Cybersecurity
DevOps Cloud
IT Operations Cloud
Issue:
You will found nnmincidentcfgload.ovpl failed with "com.hp.ov.nms.events.config.model.incident.MgmtEventConfig with key RateCorrelation does not exist at element"
when you follow below steps to import incidentcfg.
a.Collect dump file for nnmincident.
/opt/OV/bin/nnmincidentcfgdump.ovpl -dump ./mgmtEventConfig.tag -type mgmtEventConfig
b.Delete all ENTRY from Management Event Configurations on NNMi GUI
c.For testing before importing, you will find that everything is normal.
/opt/OV/bin/nnmincidentcfgload.ovpl -validate ./mgmtEventConfig.tag
d.Loading dump file which export from step(a),then you will failed with below ERORR.
-----------------
/opt/OV/bin/nnmincidentcfgload.ovpl -load ./mgmtEventConfig.tag
Translated: 110 configurations, now attempting import.
Starting a user transaction with a timeout of: 3,600 seconds.
Unable to import configuration due to database violation:
Referenced object of type com.hp.ov.nms.events.config.model.incident.MgmtEventConfig with key RateCorrelation does not exist at element /mgmtEventConfig/rateConfiguration/correlationIncidentConfig..
Transaction is in progress rolling back.
-----------------
Troubleshoot:
Judging from the error,when you delete all management events from NNMi, the imported script cannot find key RateCorrelation.
The idea is to only import this "key" firstly to avoid this problem.
Workaround:
a.We need to backup mgmteventconfig.tag file which we had exported.
b.Modify file mgmteventconfig.tag.
Delete everything except RateCorrelation event, then save it.
The content after the file is modified is as follows.
cat /tmp/mgmtEventConfig.tag
---------------------
*ConfigurationType=MgmtEventConfig
*Name RateCorrelation
*Oid .1.3.6.1.4.1.11.2.17.19.2.0.37
-Author
-Key com.hp.nms.author.nnm
-Category
-Key com.hp.nms.incident.category.Performance
-Enable true
-ActionConfiguration
-Enable false
-DampenConfiguration
-Enable false
-HourInterval 0
-MinuteInterval 0
-SecondInterval 0
-DedupConfiguration
-ComparisonCriteria NAME
-DedupCount 2
-Enable false
-HourInterval 0
-MinuteInterval 0
-SecondInterval 0
-Description This incident is provided as a template to measure the number of incoming incidents within a defined time period.
-Family
-Key com.hp.nms.incident.family.Correlation
-MessageFormat Rate Correlation for $eventName
-Severity WARNING
-EnrichConfiguration
-Enable false
-SuppressConfiguration
-Enable false
-RateConfiguration
-ComparisonCriteria NAME
-Enable false
-HourInterval 0
-MinuteInterval 0
-RateCount 0
-SecondInterval 0
--------------------
3.Import this modified file, this operation will be successful.
/opt/OV/bin/nnmincidentcfgload.ovpl -load ./mgmtEventConfig.tag
4.Now we can import the mgmtEventConfig.tag file which we backuped in step (a).