cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Event/alert trigger a script

clc
Participant

Hi,

Been looking for a way to trigger a script if a event/alert happens, what is the easiest way of doing this?

Usecase - Custom log entry metric need to trigger a script that restart process.

 

-Claus

2 REPLIES 2

Mizső
DynaMight Leader
DynaMight Leader

Hi @clc,

You should set up a metric event.

Mizs_1-1671525898254.png

Then create a problem notification eg. to Ansible or any Custom Integraion (if you do not have Ansible)

Mizs_0-1671525804083.png

I hope it helps.

Best regards,

Mizső

 

Certified Dynatrace Associate

Bert_VanderHeyd
DynaMight Mentor
DynaMight Mentor

In addition to the answer of @Mizső I would also suggest to also use an alerting profile which you configure to only include that specific metric event.