[Bug 1582708] Re: HAproxy 1.6.3 mail alerts on DOWN but not UP

Andreas Hasenack andreas at canonical.com
Wed Jun 28 17:16:54 UTC 2017


Sorry for taking to long to get back to this bug.

>From the haproxy documentation (http://cbonte.github.io/haproxy-dconv/1.6/configuration.html#4.2-email-alert%20level):
"""
Alerts are sent when :

* An un-paused server is marked as down and <level> is alert or lower
* A paused server is marked as down and <level> is notice or lower
* A server is marked as up or enters the drain state and <level>
  is notice or lower
* "option log-health-checks" is enabled, <level> is info or lower,
   and a health check status update occurs
"""

Notice how "server up" uses a different alert threshold: "notice or
lower", whereas the "down" event uses "alert or lower". The default
threshold is "alert".

Anyway, with this config I got an email in the "up" event:
        email-alert mailers mymta
        email-alert from haproxy at lxd
        email-alert to ubuntu at lxd
        email-alert level notice

Without the "email-alert level notice" line, I only got the email when
the server is down.

It seems to match the documentation at least.

I used haproxy 1.6.3-1ubuntu0.1 in xenial.


** Changed in: haproxy (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1582708

Title:
  HAproxy 1.6.3 mail alerts on DOWN but not UP

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/1582708/+subscriptions



More information about the Ubuntu-server-bugs mailing list