Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4834

Similar configuration and HAProxy don't notify when backend is up

$
0
0

Hi community!

haproxy version: 2.3.0
method: haproxy-container from docker hub official image.

I got 2 backends with similar and simple configuration and the fisrt one when container is down / up i got the notify email of checks down/up

But with the second when i try down / up… just receive DOWN notification email… but NOT UP.

the configurations to check is here below.
what i’m missing.???

thanks in advance

#---------------------------------------------------------------------
#       Backend: MediaWiki test
#---------------------------------------------------------------------
backend mediawiki_be_https
  mode http
  balance roundrobin
  option forwardfor
  option httpchk HEAD / HTTP/1.1\r\nHost:\ localhost
  email-alert mailers apsmailer1
  email-alert from alert.mng."$DOCKER_ENGINE_NAME"."$THIS_CONTAINER_NAME"@example.com
  email-alert to alerts.haproxy@example.com
  email-alert myhostname smtp1
  email-alert level info
  cookie SERVERID insert indirect nocache httponly secure
  server mediawiki mediawiki:8080 check inter 5s weight 50 id 1 cookie mediawiki_

#---------------------------------------------------------------------
#       Backend: Vault devel
#---------------------------------------------------------------------
backend vault_be_https
  mode http
  balance roundrobin
  option forwardfor
  option httpchk HEAD / HTTP/1.1\r\nHost:\ localhost
  email-alert mailers apsmailer1
  email-alert from alert.mng."$DOCKER_ENGINE_NAME"."$THIS_CONTAINER_NAME"@example.com
  email-alert to alerts.haproxy@example.com
  email-alert myhostname smtp1
  email-alert level info
  cookie SERVERID insert indirect nocache httponly secure
  server vault vault:8200 check inter 5s weight 50 id 1 cookie vault_

in the site statistic of haproxy I can see the UP backend but never get that notify UP email.

making check from CLI seams ok

curl -Is https://vaultdevel.localhost/v1/sys/health
HTTP/1.1 200 OK

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4834

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>