Application - HAProxy Opspack
HAProxy is a free tool offering high availability, load balancing, and proxying for TCP and HTTP-based applications. Well-suited for high traffic websites, HAProxy has become the industry standard open-source load balancer and is often shipped with most mainstream Linux distributions as well as commonly deployed by default in cloud platforms.
Its mode of operation makes integration into existing architectures quite simple and keeps security in mind, ensuring that valuable web servers with private information are not exposed.
What You Can Monitor Copied
This Opspack provides Host Templates allowing you to efficiently monitor your HAProxy Server.
Host Templates Copied
The following Host Templates are currently provided by this Opspack. Click the name of each Host Template to be taken to the relevant information page, including a full Service Check description and usage instructions.
Host Template | Description |
---|---|
Application - Haproxy | Monitor an HAProxy Server |
Prerequisites Copied
- HAProxy has been tested against versions 1.5, 1.6 and 1.7. See Host Template page for further information and setup instructions.
Set up HAProxy for Monitoring Copied
To configure HAProxy, you need to set up a statistics page on the server as follows.
Update the haproxy.cfg Copied
Update /etc/haproxy/haproxy.cfg
with the lines below for each proxy.
listen stats
bind <Your haproxy IP>:<Port>
mode http
stats enable
stats hide-version
stats realm haproxy\ Statistics
stats uri /haproxy?stats
stats auth <Username>:<Password>
Restart HAProxy Copied
sudo service haproxy restart
Test the stats are running correctly Copied
Visit http://<Your haproxyIP>:<Port>/haproxy?stats
and view the statistics.