For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

F5Zan_89516's avatar
F5Zan_89516
Icon for Nimbostratus rankNimbostratus
Jan 09, 2014

Email alerts while pool member up or down

We have some pools on which we want to setup email alerts so that whenever nodes are in and out of the pool they notify . Do we have a step by step solution to implement this?

 

35 Replies

  • I have made the changes on the alert.conf file and it worked just fine except for the from address even with an email address configured it still shows as root when it sends the alert.

     

    Also can I customized alerts for specific pool group?

     

  • Hi, Not sure if this post is still active. I am having an issue of Duplicate email when I configured Pool member status alerts. It worked for all the LTMs but from only one LTM I am getting duplicate email when the node goes up or down with only fraction on seconds of difference.

     

    I modified the /config/user_alert.conf file and added the alert there, also I added a Failover alert in /etc/alertd/alert.conf file .... I don't know what went wrong

     

    Any recommendations ???

     

    • Vignesh_Kumar_A's avatar
      Vignesh_Kumar_A
      Icon for Nimbostratus rankNimbostratus

      Please find the working script copy and paste in /config/user_alert.conf, for some reason "(.*?)" getting changed to (.?) or (._?).

       

      So use (.*?) all along the script

       

      alert POOLMEMBER-IS-UP "Pool (._?) member (._?):(.*?) monitor status up." { email toaddress="youremailid.com" fromaddress="root" body="A pool member came back up" }

       

      alert POOLMEMBER-IS-DOWN "Pool (._?) member (._?):(.*?) monitor status down." { email toaddress="youremailid.com" fromaddress="root" body="A pool member down" }

       

      alert VIRTUALSERVER-IS-UP "SNMP_TRAP: Virtual (.*?) available" { email toaddress="youremailid.com" fromaddress="root" body="A Virtual Server came back up" }

       

      alert VIRTUALSERVER-IS-DOWN "SNMP_TRAP: Virtual (.*?) unavailable" { email toaddress="youremailid.com" fromaddress="root" body="A Virtual Server down"

       

  • Hi, Not sure if this post is still active. I am having an issue of Duplicate email when I configured Pool member status alerts. It worked for all the LTMs but from only one LTM I am getting duplicate email when the node goes up or down with only fraction on seconds of difference.

     

    I modified the /config/user_alert.conf file and added the alert there, also I added a Failover alert in /etc/alertd/alert.conf file .... I don't know what went wrong

     

    Any recommendations ???

     

    • Vignesh_Kumar_A's avatar
      Vignesh_Kumar_A
      Icon for Nimbostratus rankNimbostratus

      Please find the working script copy and paste in /config/user_alert.conf, for some reason "(.*?)" getting changed to (.?) or (._?).

       

      So use (.*?) all along the script

       

      alert POOLMEMBER-IS-UP "Pool (._?) member (._?):(.*?) monitor status up." { email toaddress="youremailid.com" fromaddress="root" body="A pool member came back up" }

       

      alert POOLMEMBER-IS-DOWN "Pool (._?) member (._?):(.*?) monitor status down." { email toaddress="youremailid.com" fromaddress="root" body="A pool member down" }

       

      alert VIRTUALSERVER-IS-UP "SNMP_TRAP: Virtual (.*?) available" { email toaddress="youremailid.com" fromaddress="root" body="A Virtual Server came back up" }

       

      alert VIRTUALSERVER-IS-DOWN "SNMP_TRAP: Virtual (.*?) unavailable" { email toaddress="youremailid.com" fromaddress="root" body="A Virtual Server down"

       

  • Snl's avatar
    Snl
    Icon for Cirrostratus rankCirrostratus

    I am facing issue when i apply the virtual server alert config , pool config worked fine , i am running 11.6.1

     

    alertd service keep on restarting , so i reverted back , any body have the working config

     

    kindly share

     

  • Hi guys, I know this post is old but i have a question regarding this post. I am trying to add multiple pool names into single alert

    Pool /Common/your_pool member 10.10.10.(.+):(.+?) monitor status down.

    Not sure if I can modify the above command as follows

    Pool /Common/your_pool1  /Common/your_pool2  /Common/your_pool3  member (.*?):(.*?) monitor status down.

  • See the first answer in the post. You should be able to do something like this:

    Pool /Common/your_pool(1|2|3) member (.+?) monitor status down.
    

    I haven't tested that specifically, but it or something quite close should work.

    • Amresh008's avatar
      Amresh008
      Icon for Nimbostratus rankNimbostratus

      I am not sure but does AVR not cover all this ? in an easier way ?

       

  • Vernon_97235's avatar
    Vernon_97235
    Historic F5 Account

    See the first answer in the post. You should be able to do something like this:

    Pool /Common/your_pool(1|2|3) member (.+?) monitor status down.
    

    I haven't tested that specifically, but it or something quite close should work.

    • Amresh008's avatar
      Amresh008
      Icon for Nimbostratus rankNimbostratus

      I am not sure but does AVR not cover all this ? in an easier way ?