Search All Sites
Nagios Live WebinarsLet our experts show you how Nagios can help your organization.
Don't miss your chance to attend the 2014 Nagios World Conference, Oct 13-16th. Informative Sessions, Networking, Food and Cocktails! Visit go.nagios.com/conference/ for more information or to register.
- Nagios 3.x
- Nagios XI
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
stats uri /haproxy
stats realm HAProxy
stats auth hauser:hapasswd
Should be easily understandable and modifiable.
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);
my @line = grep(/^$proxy,BACKEND,/, @csv);