Build precise queries to find exactly what you need
Press ESC to close
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
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:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!