Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_haproxy_stats.pl

Current Version
1.0.1
Last Release Date
2012-11-02
Compatible With
  • Nagios 3.x
  • Nagios 4.x
License
Other
Hits
57740
Files:
FileDescription
check_haproxy_stats.plcheck_haproxy_stats.pl

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

check_haproxy_stats.pl - check local haproxy functionality
check_haproxy_stats.pl connects to haproxy via UNIX socket and retrieves haproxy stats. It then parses the stats and reports any FRONTEND which is not OPEN and/or any BACKEND/server which is not UP.

If session limit is enforced for proxies, the script can check if current session number is above specified thresholds (if any).

check_haproxy_stats.pl -p proxy1,proxy2
only check proxy1 and proxy2

check_haproxy_stats.pl -s /var/spool/haproxy/sock
connect to named UNIX socket

check_haproxy_stats.pl -w 60 -c 80
check if any proxy has current session > 60% or 80% of its session limit

check_haproxy_stats.pl -h
print help
Reviews (1)
byyann.fertat, January 9, 2015
2 of 2 people found this review helpful
The website does not seem to be available.

I cloned the script and added perfdata for graphs here: https://github.com/tatref/nagios-scripts/blob/master/check_haproxy_stats.pl