Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_haproxy_backend
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!
Usage:
check_haproxy_backend -H haproxyserver -x backend
No error checking done in the script.
Expects that the follwing has been added to haproxy.cfg, but username, password, port, and uri can be provided as parameters:
listen stats 0.0.0.0:8000
mode http
stats enable
stats uri /haproxy
stats realm HAProxy
stats auth hauser:hapasswd
Should be easily understandable and modifiable.
check_haproxy_backend -H haproxyserver -x backend
No error checking done in the script.
Expects that the follwing has been added to haproxy.cfg, but username, password, port, and uri can be provided as parameters:
listen stats 0.0.0.0:8000
mode http
stats enable
stats uri /haproxy
stats realm HAProxy
stats auth hauser:hapasswd
Should be easily understandable and modifiable.
Reviews (1)
byp-thor, July 23, 2014
This works well espexially because it has perf data.
I only had to change a minor thing becaus eit matched the wrong line due to matching grep.
if you grep "something" it would match "not-something" as well.
so i changed:
my @line = grep(/$proxy,BACKEND,/, @csv);
to:
my @line = grep(/^$proxy,BACKEND,/, @csv);
regards,
Peter
I only had to change a minor thing becaus eit matched the wrong line due to matching grep.
if you grep "something" it would match "not-something" as well.
so i changed:
my @line = grep(/$proxy,BACKEND,/, @csv);
to:
my @line = grep(/^$proxy,BACKEND,/, @csv);
regards,
Peter