zabbix: Add configuration for zabbix prod to haproxy
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
parent
c455c1b635
commit
d7b20fa114
1 changed files with 13 additions and 0 deletions
|
@ -493,6 +493,19 @@ frontend zabbix-frontend
|
|||
bind 0.0.0.0:10068
|
||||
default_backend zabbix-backend
|
||||
|
||||
backend zabbix-backend
|
||||
balance hdr(appserver)
|
||||
server zabbix01.stg zabbix01.stg:80 check inter 10s rise 1 fall 2
|
||||
# option httpchk GET /
|
||||
# http-check expect status 200,401,302
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if env == "production" %}
|
||||
frontend zabbix-frontend
|
||||
bind 0.0.0.0:10068
|
||||
default_backend zabbix-backend
|
||||
|
||||
backend zabbix-backend
|
||||
balance hdr(appserver)
|
||||
server zabbix01 zabbix01:80 check inter 10s rise 1 fall 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue