Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Your review has been submitted and is pending approval.
This plugin checks the haproxy.cfg syntax and dead members. It will also issues either a Warning or Critical alert with performance stats of file size change. A Critical Alert will indicate the HaProxy will NOT startup if a "service haproxy restart" was issued by you.
Current Version
1.0
Last Release Date
2018-06-05
Owner
Shawn Brito
Download URL
https://exchange.nagios.org/wp-content/uploads/project-files/2018/06/check_haproxy_config.sh
License
GPL
Compatible With
Check HaProxy Configuration Syntax
1. Alerts if someone has made a erroneous modification to the syntax. 2. Alerts if a Load-Balanced member is no longer reachable via DNS name (This was beneficial when identifying dead members before restarting HaProxy) 3. Alerts if the haproxy.cfg file size is above a threshold (in bytes).
Performance data output included by default.
# Syntax: ./check_haproxy_config.sh -x <haprxy_bin_path> -f <haprxy_conf_path> -c <crit> -x path to the haproxy binary -f path to the haproxy configuration -c critical manageable size for your configuration file (in bytes)
# Example Usage: /usr/local/nagios/libexec/check_haproxy_config.sh -x /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -c 8000
# How to use it? Add the following line to the /usr/local/nagios/etc/nrpe.cfg command[check_haproxy_config]=/usr/local/nagios/libexec/check_haproxy_config.sh -x $ARG1$ -f $ARG2$ -c $ARG3$
Edit the downloaded plugin and make sure these three lines are accurate. ############### DU="/usr/bin/du" CUT="/usr/bin/cut" WC="/usr/bin/wc"
You must be logged in to submit a review.
To:
From: