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

Directory Tree

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
63564
Files:
FileDescription
check_haproxy_stats.plcheck_haproxy_stats.pl
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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