For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Michaelyang's avatar
Michaelyang
Icon for Cirrostratus rankCirrostratus
Oct 13, 2022
Solved

When Active/Standby failover send mail

Hello,

I'm trying to get email notifications on my gmail if a BigIP redundancy pair failover occurs.
Here are my settings :

# vi /etc/ssmtp/ssmtp.conf
root=XXXXX@gmail.com
mailhub=smtp.gmail.com:587
Hostname=bigipA.gmail.com
FromLineOverride=YES
TLS_CA_FILE=/etc/pki/tls/certs/ca-bundle.crt
UseSTARTTLS=Yes
UseTLS=Yes
AuthUser=XXXXX@gmail.com
AuthPass=xxxxxxxxxxxx

#vi /etc/alertd/alert.conf
alert BIGIP_SOD_SODERR_SOD_STANDBY {
snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.14";
lcdwarn description="Unit going standby." priority="0";
email toaddress="XXXXX@gmail.com"
fromaddress="root"
body="LTM Failover : going to standby"
}
alert BIGIP_SOD_SODERR_SOD_ACTIVE {
snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.15";
lcdwarn description="Unit going Active." priority="0";
email toaddress="XXXXX@gmail.com"
fromaddress="root"
body="LTM Failover : going to active"
}

sSMTP configuration should be correct, because sending emails can be received
#echo -e "Subject: Test email for K13180\n\nssmtp test mail" | ssmtp -v XXXXX@gmail.com

When failover occurs, it does not work...

How do I change the settings?
Any help is appreciated.

 

3 Replies