Forum Discussion
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
- nitass
Employee
can you try /config/user_alert.conf instead?
- tlebouef_164239
Nimbostratus
The older code was causing the issue : when we upgraded to a newer code everything started working as expected
- Aviv
Cirrus
i have the same problem.
which code is the newer?
thanks,
Aviv
- IainThomson85_1
Cumulonimbus
Anything after 11.2 - HF2 :) (As a general rule...)
- vaibhav_MD_2489
Nimbostratus
Hi if you get any syntax please refer to me, thank a lot in advance
 
https://devcentral.f5.com/s/feed/0D51T00006i7hx8SAA
 
- mplaksin_293271
Nimbostratus
You must change user_alert.conf, the alert.conf its a system file, and do not have to change it.
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