F5 notifications

F5 deliver locally generated email messages

# use that address in the "from line" of the envelope.

FromLineOverride=YES



nano /etc/ssmtp/ssmtp.conf

mailhub=mail.smtp2go.com:2525

AuthUser=donald@ddrcomputing.co.uk

AuthPass=kljhoiuy

#If the BIG-IP system has custom alerts configured in /config/user_alert.conf to send an email notification using the fromaddress parameter, you must clear the comment in the following line in the /etc/ssmtp/ssmtp.conf file:

FromLineOverride=YES

ref;https://support.f5.com/csp/article/K13180


email alerts for pool, virtual server, and pool member availability status changes

nano /config/user_alert.conf


alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_STATUS {

snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.10";

email toaddress="donaldjross@gmail.com"

fromaddress="f5@lab245.com"

body="A pool member has recovered from a failed health check."

}


alert BIGIP_TMM_TMMERR_LAST_PMBR_DOWN {

email toaddress="donaldjross@gmail.com"

fromaddress="f5@lab245.com"

body="Pool has no available pool members."

}


alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_STATUS_UP {

snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.11";

email toaddress="donaldjross@gmail.com"

fromaddress="f5@lab245.com"

body="A pool member has recovered from a failed health check."

}


A virtual server has stopped processing traffic.:


alert BIGIP_MCPD_MCPDERR_VIRTUAL_UNAVAIL {

snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.136";

email toaddress="root@example.com,admin@example.com"

fromaddress="root"

body="A virtual server has stopped processing traffic."

}


alert BIGIP_MCPD_MCPDERR_VIRTUAL_AVAIL {

snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.135";

email toaddress="root@example.com,admin@example.com"

fromaddress="root"

body="A virtual server has resumed processing traffic."

}

tmsh restart sys service alertd



#test

logger -p local0.notice "01070638:5: Pool /Common/pool_one member /Common/192.168.10.1:80 monitor status down."


ref;https://support.f5.com/csp/article/K59616664