On 13May2016 09:46, Mark Haney <mark.haney@xxxxxxxxxxxxxx> wrote:
Hey all, I've got an odd problem with HAProxy 1.6.3 that I'm not sure where
to begin troubleshooting. I set up mailers for alerting when one of my DB
cluster nodes changes state. I'm getting the alerts for when a node goes
down (so mailing is working), but I'm not getting another one when that
node comes back up. I've checked the documentation and it claims the
alerts will be sent when there is a STATE change, which sounds to me like
it should alert on ANY state change, up or down.
Is anyone else seeing this problem? I ask this list in lieu of having to
join another mailing list to ask about it in case someone here knows how to
fix it.
I presume you mean this:
http://cbonte.github.io/haproxy-dconv/configuration-1.6.html#3.6
I've just looked at the 1.6.5 code and the email alerts are sent on both UP and
DOWN under exactly the same circumstances as the syslog UP and DOWN alerts,
etc.
I'd be:
- checking syslog for the matching UP and DOWN alerts
- looking at the mail logs on the relevant SMTP server for messages at the
right times
- watching the haproxy stats page to check that the server you're expecting
alerts for really is UP or DOWN when you expect it to be
- making a test clause in a small standalone haproxy.cfg file and turning
servers on and off by hand to watch the behaviour
If nothing is learnt from this, then building and trying 1.6.5 to see if it is
different in behaviour from 1.6.3, but I'd be surprised: the code is straight
forward and unconditional (see server.c, search for send_email_alert, it shows
up right under calls to send_log).
Superficially, I'm suspecting some mail filing issue, but only after looking at
the above items first.
Cheers,
Cameron Simpson <cs@xxxxxxxxxx>
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org