Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_haproxy_stats.pl
1.0.1
2012-11-02
- Nagios 3.x
- Nagios 4.x
Other
63513
File | Description |
---|---|
check_haproxy_stats.pl | check_haproxy_stats.pl |
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 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
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)
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
I cloned the script and added perfdata for graphs here: https://github.com/tatref/nagios-scripts/blob/master/check_haproxy_stats.pl