Userparameter Haproxy - Conf PDF
Userparameter Haproxy - Conf PDF
conf
Page 1 of 2
#
# Discovery Rule
#
# cached results
UserParameter=haproxy.stats[*],/usr/local/bin/haproxy_stats.sh $1 $2 $3 $4
UserParameter=haproxy.stat.hrsp_3xx[*],/usr/local/bin/haproxy_stats.sh $1 $2 $3 hrsp_3xx
UserParameter=haproxy.stat.hrsp_4xx[*],/usr/local/bin/haproxy_stats.sh $1 $2 $3 hrsp_4xx
UserParameter=haproxy.stat.hrsp_5xx[*],/usr/local/bin/haproxy_stats.sh $1 $2 $3 hrsp_5xx
UserParameter=haproxy.stat.hrsp_other[*],/usr/local/bin/haproxy_stats.sh $1 $2 $3
hrsp_other
UserParameter=haproxy.stat.hanafail[*],/usr/local/bin/haproxy_stats.sh $1 $2 $3 hanafail
UserParameter=haproxy.stat.last_chk[*],/usr/local/bin/haproxy_stats.sh $1 $2 $3 last_chk
UserParameter=haproxy.stat.last_agt[*],/usr/local/bin/haproxy_stats.sh $1 $2 $3 last_agt
# haproxy_stats.sh script
## haproxy_stats.sh $1 $2 $3 $4
### $1 is a path to haproxy socket - optional, defaults to haproxy_stats.sh
### $2 is a name of the backend, as set in haproxy.cfg
### $3 is a name of the server, as set in haproxy.cfg
### $4 is a stat as references by HAProxy terminology
# haproxy_stats.sh /var/run/haproxy/info.sock www-backend www01 status
# haproxy_stats.sh www-backend BACKEND status
# haproxy_stats.sh https-frontend FRONTEND status