Re: [PATCH 1/2] MEDIUM: Do not send email alerts corresponding to log-health-checks messages

2015-04-29 Thread Simon Horman
On Tue, Apr 28, 2015 at 09:24:42AM +0200, Willy Tarreau wrote: On Tue, Apr 28, 2015 at 02:25:02PM +0900, Simon Horman wrote: On Tue, Apr 28, 2015 at 06:43:38AM +0200, Willy Tarreau wrote: Hi Simon, On Tue, Apr 28, 2015 at 10:58:56AM +0900, Simon Horman wrote: This seems only to

Re: [PATCH v2 0/3] MEDIUM: Change verbosity of email alerts

2015-04-29 Thread Willy Tarreau
Hi Simon, On Thu, Apr 30, 2015 at 01:10:32PM +0900, Simon Horman wrote: Hi, the aim of this series is to make the send more email alerts when they are likely to be useful and less when they are likely to be unwanted. (...) Whole series applied, thank you very much! Willy

Re: [PATCH v2 0/3] MEDIUM: Change verbosity of email alerts

2015-04-29 Thread Simon Horman
On Thu, Apr 30, 2015 at 07:31:28AM +0200, Willy Tarreau wrote: Hi Simon, On Thu, Apr 30, 2015 at 01:10:32PM +0900, Simon Horman wrote: Hi, the aim of this series is to make the send more email alerts when they are likely to be useful and less when they are likely to be unwanted

[PATCH v2 0/3] MEDIUM: Change verbosity of email alerts

2015-04-29 Thread Simon Horman
Hi, the aim of this series is to make the send more email alerts when they are likely to be useful and less when they are likely to be unwanted. Changes in v2: * As suggested by Willy Tarreau, lower the priority at which email alerts for of log-health-checks messages are sent rather never

[PATCH v2 3/3] MEDIUM: Document when email-alerts are sent

2015-04-29 Thread Simon Horman
Document the influence of email-alert level and other configuration parameters on when email-alerts are sent. Signed-off-by: Simon Horman ho...@verge.net.au --- doc/configuration.txt | 9 + 1 file changed, 9 insertions(+) diff --git a/doc/configuration.txt b/doc/configuration.txt index

[PATCH v2 2/3] MEDIUM: Send email alerts when servers are marked as UP or enter the drain state

2015-04-29 Thread Simon Horman
This is similar to the way email alerts are sent when servers are marked as DOWN. Like the log messages corresponding to these state changes the messages have log level notice. Thus they are suppressed by the default email-alert level of 'alert'. To allow these messages the email-alert level

[PATCH v2 1/3] MEDIUM: Lower priority of email alerts for log-health-checks messages

2015-04-29 Thread Simon Horman
Lower the priority of email alerts for log-health-checks messages from LOG_NOTICE to LOG_INFO. This is to allow set-ups with log-health-checks enabled to disable email for health check state changes while leaving other email alerts enabled. In order for email alerts to be sent for health check

Re: [PATCH 1/2] MEDIUM: Do not send email alerts corresponding to log-health-checks messages

2015-04-28 Thread Willy Tarreau
On Tue, Apr 28, 2015 at 02:25:02PM +0900, Simon Horman wrote: On Tue, Apr 28, 2015 at 06:43:38AM +0200, Willy Tarreau wrote: Hi Simon, On Tue, Apr 28, 2015 at 10:58:56AM +0900, Simon Horman wrote: This seems only to lead to excessive verbosity which seems much more appropriate for

Re: [PATCH 1/2] MEDIUM: Do not send email alerts corresponding to log-health-checks messages

2015-04-27 Thread Willy Tarreau
Hi Simon, On Tue, Apr 28, 2015 at 10:58:56AM +0900, Simon Horman wrote: This seems only to lead to excessive verbosity which seems much more appropriate for logs than email. Signed-off-by: Simon Horman ho...@verge.net.au --- src/checks.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 0/2] MEDIUM: Change verbosity of email alerts

2015-04-27 Thread Simon Horman
Hi, the aim of this series is to make the send more email alerts when they are likely to be useful and less when they are likely to be unwanted. Simon Horman (2): MEDIUM: Do not send email alerts corresponding to log-health-checks messages MEDIUM: Send email alerts when servers

[PATCH 2/2] MEDIUM: Send email alerts when servers are marked as UP or enter the drain state

2015-04-27 Thread Simon Horman
This is similar to the way email alerts are sent when servers are marked as DOWN. Like the log messages corresponding to these state changes the messages have log level notice. Thus they are suppressed by the default email-alert level of 'alert'. To allow these messages the email-alert level

[PATCH 1/2] MEDIUM: Do not send email alerts corresponding to log-health-checks messages

2015-04-27 Thread Simon Horman
This seems only to lead to excessive verbosity which seems much more appropriate for logs than email. Signed-off-by: Simon Horman ho...@verge.net.au --- src/checks.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/checks.c b/src/checks.c index 3702d9a4b0fe..efcaff20219b 100644 ---

Re: [PATCH 1/2] MEDIUM: Do not send email alerts corresponding to log-health-checks messages

2015-04-27 Thread Simon Horman
On Tue, Apr 28, 2015 at 06:43:38AM +0200, Willy Tarreau wrote: Hi Simon, On Tue, Apr 28, 2015 at 10:58:56AM +0900, Simon Horman wrote: This seems only to lead to excessive verbosity which seems much more appropriate for logs than email. Signed-off-by: Simon Horman ho...@verge.net.au

Re: [PATCH/RFC 0/8] Email Alerts

2015-02-12 Thread Scott McKeown
, Willy Tarreau wrote: Hi Simon, On Fri, Jan 30, 2015 at 11:22:52AM +0900, Simon Horman wrote: Hi Willy, Hi All, the purpose of this email is to solicit feedback on an implementation of email alerts for haproxy the design of which is based on a discussion in this forum some months ago

Re: [PATCH 0/2] Allow suppression of email alerts by log level

2015-02-05 Thread Willy Tarreau
Hi Simon, On Fri, Feb 06, 2015 at 11:11:55AM +0900, Simon Horman wrote: Hi, This series adds a new option which allows configuration of the maximum log level of messages for which email alerts will be sent. (...) Great! Both patches applied. Thanks! Willy

[PATCH 2/2] MEDIUM: Allow suppression of email alerts by log level

2015-02-05 Thread Simon Horman
This patch adds a new option which allows configuration of the maximum log level of messages for which email alerts will be sent. The default is alert which is more restrictive than the current code which sends email alerts for all priorities. That behaviour may be configured using the new

[PATCH 0/2] Allow suppression of email alerts by log level

2015-02-05 Thread Simon Horman
Hi, This series adds a new option which allows configuration of the maximum log level of messages for which email alerts will be sent. The default is alert which is more restrictive than the current code which sends email alerts for all priorities. That behaviour may be configured using the new

Re: [PATCH/RFC 0/8] Email Alerts

2015-02-05 Thread Pavlos Parissis
Horman wrote: Hi Willy, Hi All, the purpose of this email is to solicit feedback on an implementation of email alerts for haproxy the design of which is based on a discussion in this forum some months ago. It would be great if we could use something like this acl low_capacity nbsrv(foo_backend

Re: [PATCH/RFC 0/8] Email Alerts

2015-02-04 Thread Scott McKeown
Thanks Willy, I did look in the github repo at https://github.com/haproxy but this says that the last commit was 7 days ago. Am I looking in the wrong place? ~Ta Scott On 3 February 2015 at 22:49, Willy Tarreau w...@1wt.eu wrote: Hi Scott, On Tue, Feb 03, 2015 at 03:27:13PM +, Scott

Re: [PATCH/RFC 0/8] Email Alerts

2015-02-03 Thread Scott McKeown|redIT
Hi Willy, Can you please just confirm where this has been merged into as I've downloaded the v1.6-dev0 archive today and I can't see it in there also I've tried Horms github version at https://github.com/horms/haproxy/tree/devel/email-alert which does look to have all the options in but I

Re: [PATCH/RFC 0/8] Email Alerts

2015-02-03 Thread Baptiste
of email alerts for haproxy the design of which is based on a discussion in this forum some months ago. It would be great if we could use something like this acl low_capacity nbsrv(foo_backend) lt 2 mail alert if low_capacity In some environments you only care to wake up the on-call sysadmin

Re: [PATCH/RFC 0/8] Email Alerts

2015-02-03 Thread Pavlos Parissis
On 01/02/2015 03:15 μμ, Willy Tarreau wrote: Hi Simon, On Fri, Jan 30, 2015 at 11:22:52AM +0900, Simon Horman wrote: Hi Willy, Hi All, the purpose of this email is to solicit feedback on an implementation of email alerts for haproxy the design of which is based on a discussion

Re: [PATCH/RFC 0/8] Email Alerts

2015-02-03 Thread Willy Tarreau
Hi Scott, On Tue, Feb 03, 2015 at 03:27:13PM +, Scott McKeown | redIT wrote: Hi Willy, Can you please just confirm where this has been merged into as I've downloaded the v1.6-dev0 archive today and I can't see it in there also I've tried Horms github version at

Re: [PATCH/RFC 0/8] Email Alerts

2015-02-03 Thread Simon Horman
, the purpose of this email is to solicit feedback on an implementation of email alerts for haproxy the design of which is based on a discussion in this forum some months ago. It would be great if we could use something like this acl low_capacity nbsrv(foo_backend) lt 2 mail alert

Re: [PATCH/RFC 0/8] Email Alerts

2015-02-02 Thread Willy Tarreau
Hi Simon, On Mon, Feb 02, 2015 at 11:16:09AM +0900, Simon Horman wrote: * No options to configure the format of the email alerts You know, even if we make this format very flexible, some users will complain that they cannot send it in html and attach graphs :-) Haha, yes indeed

[PATCH] MEDIUM: Document email alerts

2015-02-02 Thread Simon Horman
/configuration.txt @@ -1224,6 +1224,36 @@ peer peername ip:port server srv2 192.168.0.31:80 +3.6. Mailers + +It is possible to send email alerts when the state of servers changes. +If configured email alerts are sent to each mailer that is configured +in a mailers section. Email

Re: [PATCH] MEDIUM: Document email alerts

2015-02-02 Thread Willy Tarreau
On Tue, Feb 03, 2015 at 01:00:44PM +0900, Simon Horman wrote: Signed-off-by: Simon Horman ho...@verge.net.au --- doc/configuration.txt | 104 ++ (...) Great! I changed the commit tag to DOC and applied it as-is. Thank you Simon! Willy

Re: [PATCH/RFC 0/8] Email Alerts

2015-02-01 Thread Willy Tarreau
Hi Simon, On Fri, Jan 30, 2015 at 11:22:52AM +0900, Simon Horman wrote: Hi Willy, Hi All, the purpose of this email is to solicit feedback on an implementation of email alerts for haproxy the design of which is based on a discussion in this forum some months ago. Thanks for working

Re: [PATCH/RFC 0/8] Email Alerts

2015-02-01 Thread Simon Horman
Hi Willy, On Sun, Feb 01, 2015 at 03:15:27PM +0100, Willy Tarreau wrote: Hi Simon, On Fri, Jan 30, 2015 at 11:22:52AM +0900, Simon Horman wrote: Hi Willy, Hi All, the purpose of this email is to solicit feedback on an implementation of email alerts for haproxy the design of which

[PATCH/RFC 7/8] MEDIUM: Allow configuration of email alerts

2015-01-31 Thread Simon Horman
This currently does nothing beyond parsing the configuration and storing in the proxy as there is no implementation of email alerts. Signed-off-by: Simon Horman ho...@verge.net.au --- include/types/mailers.h | 6 +-- include/types/proxy.h | 10 + src/cfgparse.c | 109

[PATCH/RFC 8/8] MEDIUM: Support sending email alerts

2015-01-31 Thread Simon Horman
of the beginning of the message */ }; +struct email_alert { + struct list list; + struct list tcpcheck_rules; +}; + +struct email_alertq { + struct list email_alerts; + struct check check; /* Email alerts are implemented using existing check

[PATCH/RFC 0/8] Email Alerts

2015-01-31 Thread Simon Horman
Hi Willy, Hi All, the purpose of this email is to solicit feedback on an implementation of email alerts for haproxy the design of which is based on a discussion in this forum some months ago. This patchset allows configuration of mailers. These are like the existing haproxy concept of peers

Re: email alerts

2014-11-03 Thread Jorge Severino
] *Sent:* Monday, November 3, 2014 3:51 PM *To:* Andrey Zakabluk *Subject:* RE: email alerts You a create config file? El 02-11-2014 8:55, Andrey Zakabluk a.zakab...@velcom.by escribió: Hi! Maybe You can send me your config file for logpp ? For example. I want try use LogPP. I am created

Re: email alerts

2014-10-28 Thread Ben Cabot
from the configuration file. This done in the following patch files: cfgparse.c checks.c log.c global.h So in the configuration file I have added the option “email_alert” to the global section with to and from address. http://blog.loadbalancer.org/3-ways-to-send-haproxy-health-check-email

email alerts

2014-10-24 Thread Andrey Zakabluk
file. This done in the following patch files: cfgparse.c checks.c log.c global.h So in the configuration file I have added the option “email_alert” to the global section with to and from address. http://blog.loadbalancer.org/3-ways-to-send-haproxy-health-check-email-alerts

Re: email alerts

2014-10-24 Thread Jorge Severino
section with to and from address. http://blog.loadbalancer.org/3-ways-to-send-haproxy-health-check-email-alerts/ - I try add text from patch file in the end original file and make haproxy file. /opt/haproxy/global.h.diff /opt/haproxy/include/types/global.h cat

Re: email alerts

2014-10-24 Thread Maik Kulbe
in the following patch files: cfgparse.c checks.c log.c global.h So in the configuration file I have added the option “email_alert” to the global section with to and from address. http://blog.loadbalancer.org/3-ways-to-send-haproxy-health-check-email-alerts/ - I try add text

Email alerts

2013-11-04 Thread Ben Cabot
Hi All, I've been looking into sending email alerts from HAProxy and have written a short blog on what I found with a few a few simple examples : http://blog.loadbalancer.org/3-ways-to-send-haproxy-health-check-email-alerts/ If anyone has any thoughts ,suggestions or improvements please let me