Forum Discussion

Jesse_Wahl_3952's avatar
Jesse_Wahl_3952
Historic F5 Account
Apr 06, 2011

Configuring alerts to send email notifications with variable body content

After following sol3667: Configuring alerts to send email notifications and sol7574: Monitoring SSL certificate expiration on the BIG-IP system

 

 

and configuring an alert similar to the following example alert:

 

 

alert MY_TEST_ALERT "will expire on" {

 

snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.28.666";

 

email toaddress="test@test.com"

 

fromaddress="root"

 

body="The test of this Solution worked!"

 

}

 

 

 

I was able to test and the emails show up fine.

 

 

This is great, however, I would like to include the original log message that triggered the trap, from /var/log/ltm, to be included in the body of the email.

 

 

Is there a variable that can be used in the "body=" section of the alert that will be replaced by the log message that triggered the trap?

 

 

or, could the text of the message body be read from a file?

 

 

Thanks in advance for your help!

 

 

-J

 

 

 

 

4 Replies

  • Hi Jesse,

     

     

    I am not sure what variables are possible in the alert.conf. Can you open a case with F5 Support on this and reply back with what you find out for future reference?

     

     

    Thanks, Aaron
  • Hi,

     

    Can I use a specific veriable in body message? Like Body="%pool %member is down"

     

    Thanks for your interest,

     

  • Can I use a specific veriable in body message? Like Body="%pool %member is down"

     

    i think it is not possible (as of now).