Forum Discussion
email alert when service restarts
Is it possible to have BIGIP send email alert when a service restarts.
I have had the ASM service restart and would like to receive an email from the F5 letting me know.
3 Replies
alert ASM_SERVICE "Removed publication with publisher id bd" {
email toaddress="usn.jbcharleston.niwcatlanticsc.list.hsse-cloud@health.mil"
fromaddress="awsw-prod-f5-lb01@health.mil"
body="ASM service changed stop on AWSW-M-WAF01-DMBIGIPVM-DHA-PR-AZA"
}This is what I put in the user_alert.conf file. this sends an email alert
- VGF5
Cumulonimbus
Hi steven_normole
Yes, it is possible. Here are the steps:- You must configure the SMTP server and email addresses in the BIG-IP alerting system.
- The BIG-IP uses the alertd daemon and the /etc/alertd/alert.conf file to define which system events trigger which actions (such as sending an email).
Here is the config:
alert asm "ASM subsystem restart requested" {
email to-addresses="your-email@domain.com"
}
- After editing /etc/alertd/alert.conf, reload the alertd service: tmsh restart sys service alertd.
References:
- K20156213: Customizing email alert for pool to get the pool/node member name and status in message body instead of subject line
- K13180: Configuring the BIG-IP system to deliver locally generated email messages (11.x - 17.x)
I tried your suggestion and i restarted ASM service, but the F5 never sent the email.
Some additional information, I already have the F5 configured to send email alerts based upon certain alerts and that is working.
I am trying now to have the F5 send email when the ASM service is being restarted.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
