This action is based on a python script using a dedicated configuration file.
Prerequisites
- Download from Hexagon share website the alertscripts.ziparchive
- Python 3 installed on the HPA dedicated host
Installation
- Unzip alertscripts.zipin the HPA home folder (containing controller.sh, var, modules…)
- A new folder alertscripts.zipis created with some content
Setup
- Modify <HPA home>/alertscripts/mail/sendmail.properties
smtp.server = smtp.example.com
smtp.port = 587
smtp.username = smtp login
smtp.password = smtp password
smtp.from = project@bank-example.com
smtp.to = support@bank-example.com
smtp.subject = Alert detected on HPA : ${alert_name}, severity = ${alert_status}, previous severity = ${alert_previous_status}
hpa.external_url = https://hpa-demo.hexagon-perf.com
The hpa.external_url is very similar to the HPA_EXTERNAL_DNS of <HPA home>/environment.config - defined here
- Configure the linked shell action with
- 
../../alertscripts/alert_mail_python.shas Shell command
- 
 as parameters as parameters
 
- 
Attention point
- This script creates one file per day with the latest execution (for debug purposes)
- It is located in <HPA home>/alertscripts/logs
- In the next official release, this file will be included in the logrotate purge mechanism