Forum Discussion
Email alerts while pool member up or down
Hi, Not sure if this post is still active. I am having an issue of Duplicate email when I configured Pool member status alerts. It worked for all the LTMs but from only one LTM I am getting duplicate email when the node goes up or down with only fraction on seconds of difference.
I modified the /config/user_alert.conf file and added the alert there, also I added a Failover alert in /etc/alertd/alert.conf file .... I don't know what went wrong
Any recommendations ???
- Vignesh_Kumar_ADec 08, 2016
Nimbostratus
Please find the working script copy and paste in /config/user_alert.conf, for some reason "(.*?)" getting changed to (.?) or (._?).
So use (.*?) all along the script
alert POOLMEMBER-IS-UP "Pool (._?) member (._?):(.*?) monitor status up." { email toaddress="youremailid.com" fromaddress="root" body="A pool member came back up" }
alert POOLMEMBER-IS-DOWN "Pool (._?) member (._?):(.*?) monitor status down." { email toaddress="youremailid.com" fromaddress="root" body="A pool member down" }
alert VIRTUALSERVER-IS-UP "SNMP_TRAP: Virtual (.*?) available" { email toaddress="youremailid.com" fromaddress="root" body="A Virtual Server came back up" }
alert VIRTUALSERVER-IS-DOWN "SNMP_TRAP: Virtual (.*?) unavailable" { email toaddress="youremailid.com" fromaddress="root" body="A Virtual Server down"
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