Forum Discussion

Tony_Marques_92's avatar
Tony_Marques_92
Icon for Nimbostratus rankNimbostratus
Mar 15, 2013

Modify 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

  • does the answer in previous thread not work??

     

     

    EMAIL SUBJECT LINE

     

    https://devcentral.f5.com/community/group/aft/2166004/asg/52
  • 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).
  • 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.
  • 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
    
    
  • 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?
  • 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
    
  • 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.
  • 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