Forum Discussion
Tony_Marques_92
Nimbostratus
Mar 15, 2013Modify subject line for custom alerts
I ahve LTMs configured with custom alerts and they work great. The subject field is hardcoded with the log entry from the LTM. Since I want different distribtuion lists to received these alerts based on job groups, I'd like to make the subject field a little more understandable. Is it possible to modify the subject field? I'm running code 11.2.1.
Regards,
Tony Marques
10 Replies
- nitass
Employee
does the answer in previous thread not work??
EMAIL SUBJECT LINE
https://devcentral.f5.com/community/group/aft/2166004/asg/52 - Tony_Marques_92
Nimbostratus
No, although I'm not familiar with the logger plan that is mentioned.
- nitass
Employee
i see. i guess you do not want to completely replace subject but modifying. as far as i know, it is not yet supported. i suggest you open a case and submit request for enhancement (rfe). - Tony_Marques_92
Nimbostratus
I don't mind changing the subject entirely. The link provided does not show ho to do that though. The following:
alert BIGIP_MCPD_MCPDERR_NODE_ADDRESS_MON_STATUS_UP2 "Pool member x.x.x.:Y.Y.Y monitor status up." {
email toaddress="blah@blah.com"
fromaddress="sender@sender.com"
body="whatever you want"
Nothing there modifies or completely changes the subject field. - nitass
Employee
this is mine.[root@ve10:Active] config cat /config/user_alert.conf alert BIGIP_MCPD_MCPDERR_NODE_ADDRESS_MON_STATUS_UP2 "Pool member 200.200.200.101:80 monitor status down." { email toaddress="nitass@xxx.com" fromaddress="sender@sender.com" body="Subject: whatever you want" } /var/log/ltm [root@ve10:Active] config tail -f /var/log/ltm Mar 21 00:50:44 local/ve10 notice mcpd[3824]: 01070638:5: Pool member 200.200.200.101:80 monitor status down. Mar 21 00:50:44 local/tmm err tmm[4950]: 01010028:3: No members available for pool foo email From: sender@sender.com [mailto:sender@sender.com] Sent: Thursday, March 21, 2013 12:51 AM To: Nitass Subject: whatever you want - Tony_Marques_92
Nimbostratus
Whatever I put in the "body=" field is what shows up in the body of the email, even with Subject like you have. What code are you running? - nitass
Employee
What code are you running?it is 10.2.4 hf4. what is yours?[root@ve10:Active] config b version|grep -iA 1 version BIG-IP Version 10.2.4 655.0 Hotfix HF4 Edition - Tony_Marques_92
Nimbostratus
Running code 11.2.1.797.0. That must be the difference. They must have changed something with version 11 that does not work like like version 10. - nitass
Employee
yes, you are correct. it does not work on my 11.3.0 box too. i have not found a way to make it. 😕[root@ve11a:Active:Changes Pending] config cat /config/user_alert.conf alert BIGIP_MCPD_MCPDERR_NODE_ADDRESS_MON_STATUS_UP2 "Pool /Common/foo member /Common/200.200.200.101:80 monitor status down." { email toaddress="nitass@xxx.com" fromaddress="sender@sender.com" body="Subject: whatever you want" } email -----Original Message----- From: sender@sender.com [mailto:sender@sender.com] Sent: Thursday, March 21, 2013 1:14 AM To: Nitass Subject: 01070638:5: Pool /Common/foo member /Common/200.200.200.101:80 monitor status down. [ was unchecked for 0hr:0min:27sec ] Subject: whatever you want - Tony_Marques_92
Nimbostratus
Glad to hear it is not me and my incompetence.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects