# Nbsrv acl port monitoring

**URL:** <https://discourse.haproxy.org/t/nbsrv-acl-port-monitoring/3425>\
**Category:** Help!\
**Created:** [January 23, 2019, 9:30am UTC](https://discourse.haproxy.org/t/nbsrv-acl-port-monitoring/3425 "2019-01-23T09:30:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nostalgia](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@nostalgia](https://discourse.haproxy.org/u/nostalgia)\
**Post date:** [January 23, 2019, 9:30am UTC](https://discourse.haproxy.org/t/nbsrv-acl-port-monitoring/3425/1 "2019-01-23T09:30:13Z")

</div>

Hi,  
I have two server and two port for per server,I want if one port of per server down The other port on this server is also down and send all request to other server.  
Thanks

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [January 23, 2019, 10:27am UTC](https://discourse.haproxy.org/t/nbsrv-acl-port-monitoring/3425/2 "2019-01-23T10:27:57Z")

</div>

What works best depends on the current configuration, which is we need you to share it.

---

<div class="post-metadata">

**Author:** ![nostalgia](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@nostalgia](https://discourse.haproxy.org/u/nostalgia)\
**Post date:** [January 23, 2019, 10:44am UTC](https://discourse.haproxy.org/t/nbsrv-acl-port-monitoring/3425/3 "2019-01-23T10:44:17Z")

</div>

frontend my\_frontend  
mode http  
option httplog  
bind \*:80  
bind \*:82

backend my\_backend1  
mode http  
balance roundrobin  
server server1 192.168.1.11 check port 80  
server server1 192.168.1.11 check port 82

backend my\_backend2  
mode http  
balance roundrobin  
server server1 192.168.1.12 check port 80  
server server1 192.168.1.12 check port 82

ACL: if port 80 down on backend1 port 82 also on this backend go down and send all request to backend2

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [February 7, 2019, 10:27pm UTC](https://discourse.haproxy.org/t/nbsrv-acl-port-monitoring/3425/4 "2019-02-07T22:27:48Z")

</div>

I’m afraid that’s not possible with build in health checks. You can only health check a single port.

Use [external-check](https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#4.2-option%20external-check) or [agent-check](https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#5.2-agent-check). Or unify them on the server side to a single dedicated health check port by some means.
