Forum Discussion
Email notification for pool members
- Jun 26, 2019
try below sample
create host entry in f5 for email gateway
mail.ae - 10.1.122.13
cp /config/user_alert.conf /config/user_alert.conf.SOL3727
modify /sys outbound-smtp mailhub mail.ae:25
save /sys config
echo "ssmtp test mail" | mail -vs "Test email for SOL13180" abc@mail.ae
create /sys management-route 10.1.122.13/32 gateway 10.x.x.1
echo "ssmtp test mail" | mail -vs "f5 test mail" abc@mail.ae
tmsh restart /sys service alertd
Full pool email alert
custome pool email alerts
==================
user alert file
vi /config/user_alert.conf
alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_DOWN "Pool (.*?) member (.*?):(.*?) monitor status (.*?)." {
email toaddress="netsec@mail..ae"
fromaddress="primarybox@mail.ae"
body="A pool member went down"
}
alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_UP "Pool (.*?) member (.*?):(.*?) monitor status up." {
email toaddress="netsec@mail.ae"
fromaddress="primarybox@mail.ae"
body="A pool member came back up"
}
try below sample
create host entry in f5 for email gateway
mail.ae - 10.1.122.13
cp /config/user_alert.conf /config/user_alert.conf.SOL3727
modify /sys outbound-smtp mailhub mail.ae:25
save /sys config
echo "ssmtp test mail" | mail -vs "Test email for SOL13180" abc@mail.ae
create /sys management-route 10.1.122.13/32 gateway 10.x.x.1
echo "ssmtp test mail" | mail -vs "f5 test mail" abc@mail.ae
tmsh restart /sys service alertd
Full pool email alert
custome pool email alerts
==================
user alert file
vi /config/user_alert.conf
alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_DOWN "Pool (.*?) member (.*?):(.*?) monitor status (.*?)." {
email toaddress="netsec@mail..ae"
fromaddress="primarybox@mail.ae"
body="A pool member went down"
}
alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_UP "Pool (.*?) member (.*?):(.*?) monitor status up." {
email toaddress="netsec@mail.ae"
fromaddress="primarybox@mail.ae"
body="A pool member came back up"
}
Hi SNL, I really appreciate this answer, before you posted it i could did with coworkers help, but all your description in the example fit perfectly with this question 👏
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