Forum Discussion

tlebouef_164239's avatar
tlebouef_164239
Icon for Nimbostratus rankNimbostratus
Mar 17, 2015

No emails from f5 lb - alert.conf modified and still nothing

We are running version : BIG-IP 11.2.1 Build 862.0 Hotfix HF2

I have modified my alert.conf with no avail ... still not getting alerts. I am watching the ltm log and i get alerts spitting out but when I modify my alert.conf file I get errors with parsing the following.

    email toaddress="my@emailaddress.com"
    fromaddress="example@.address.com"
    body="Pool member state change"

I have also tried this :

; email toaddress="my@emailaddress.com" fromaddress="example@.address.com" body="Pool member state change";

While the above does parse correctly and does not give line errors still no email out of the system. I have tested and setup email correctly with our relay server.

echo "ssmtp test mail" | mail -vs "Test email " myemail@testmail.com

I do get the test email below is an example of the alert.conf modification. All I wish to have is alerts for up down node status and pools. So i found the section for them based on the node status log entries of : mcpd but can't find tmm ex :

Mar 16 21:31:30 tmm err tmm[8253]: 01010221:3: Pool /Common/example now has available members

Mar 16 21:31:26 aldda30-lb01 notice mcpd[6999]: 01070638:5: Pool /Common/example member /Common/NODENAME:0 monitor status down. [ was up for 19hrs:26mins:31sec ]

I guess I am in the correct section and here it is :

/* * from bigd (CR36393) -- changed from mcpd messages in v9.2.0 (CR46190) and hotfix v9.0.5 * For the following 4 alerts, messages need to be used in pattern match to * distiguish different ipaddr, port, etc. So, if these messages are changed, * the changes in alert system need to be done accordingly. */ alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_STATUS { snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.10" ; email toaddress="mymail@example.com" fromaddress="lbname@domain.com" body=""; } alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_STATUS_UP { snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.11" ; email toaddress="mymail@example.com" fromaddress="lbname@domain.com" body=""; }

alert BIGIP_MCPD_MCPDERR_NODE_ADDRESS_MON_STATUS { snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.12" ; email toaddress="mymail@example.com" fromaddress="lbname@domain.com" body=""; } alert BIGIP_MCPD_MCPDERR_NODE_ADDRESS_MON_STATUS_UP { snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.13" ; email toaddress="mymail@example.com" fromaddress="lbname@domain.com" body=""; }

Still no emails from the system but I am watching the ltm log alerts are logged and still no emails. Any ideas ?

6 Replies