Hi, I am working on a requirement where I have to integrate my Dynatrace Managed with Netcool which is another monitoring system to raise incident/tickets in remedy. The integration is all successful and we are able to send the payload to Netcool. But the problem is the payload itself.
What i have done is created a alerting profile (XYZ-profile) which uses a Management Zone (XYZ-mz). Now this management zone has a rule which says -
Services where Service type equals ‘Web service’ and that run on Hosts where Host name begins with ‘myhost-’
I have 2 queries when we get multiple services problems in a single event -
- What the above rule doing is fetching the services deployed on myhost-* and also the parent services impacted by these services. For example this is a middleware host so the calling application could be any front end so in the payload, we are also getting those front end hosts and related services. We only want the services impacted on myhost-* and not others. Is there a way to achieve this?
- The other thing is Dynatrace does not provide the {hostname} in the payload so I had to extract it using tags because it is mandatory to provide hostname to Netcool in order to raise remedy tickets. Is there any other better way to see this?
The payload i am using -
{
“State”:“{State}”,
“PID”:“{PID}”,
“ProblemID”:“{ProblemID}”,
“ProblemTitle”:“{ProblemTitle}”,
“MW_Host”:“{Tags}”,
“ImpactedEntity”:“{ImpactedEntity}”,
“ImpactedEntities”:{ImpactedEntities},
“ProblemSeverity”:“{ProblemSeverity}”
}
The Sample payload I am getting is -
{
“State”:“OPEN”,
“PID”:“-XXXXXXXXXXX”,
“ProblemID”:“P-21042920”,
“ProblemTitle”:“Multiple service problems”,
“MW_Host”:"MW_Host:myhost-p11, MW_Host:myhost-p12, MW_Host:myhost-p13, OID:otherhost-p11, OID:otherhost-p12,
“ImpactedEntity”:“Multiple service problems on 5 Services”,
“ImpactedEntities”:[{“type”:“SERVICE”,“name”:“myhost-service1”,“entity”:“SERVICE-XXXXX”},{“type”:“SERVICE”,“name”:“myhost-servioc2”,“entity”:“SERVICE-XXXXXX”},{“type”:“SERVICE”,“name”:“otherhost-service1”,“entity”:“SERVICE-XXXXXX”},{“type”:“SERVICE”,“name”:“otherhost-service2”,“entity”:“SERVICE-XXXX”],
“ProblemSeverity”:“ERROR”
}