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

F5 Monitoring to display all list of pools in down state in my alert

danda_raviteja
Newcomer

Hi Team,

I have developed a python code for monitoring F5 Devices in which i got struck where I want to display all my pool members in alert.

So , to raise a alert I need two conditions in my alert_settings, if count of pool numbers is above 0, then I want to iterate through my list of down state pool numbers and want to display same in my description.

Thanks

Raviteja


3 REPLIES 3

Mike_L
Dynatrace Guru
Dynatrace Guru

You can create custom alerts in the python code, that is how the Dynatrace supported f5 plugin does it. What is the reason behind not using that one?


Mike

danda_raviteja
Newcomer

hi @Michael L. thanks for the response.

My problem is, inside custom alert , if my condition is met , Dynatrace has to raise a alert with with list of all strings assigned to a variable. (list available in .py file)

if (countOderrors > 1)

"description": "The {metricname} of {severity} is {alert_condition} the value is {threshold}"

I want to add my {variable} here from my *.py file.

Thanks


You can't add your own variables and logic in the plugin.json. What you can do when you need to customize it is to raise the alert from within the Python code, using
report_availability_event.


Mike

Featured Posts