Commit 8f6b185b authored by Fulvio Galeazzi's avatar Fulvio Galeazzi
Browse files

Update to grep correct field for AUTH line, otherwise nagios complains.

parent 1ae48809
......@@ -9,7 +9,7 @@
AUTH=$(grep -r "stats auth" /etc/haproxy/haproxy.cfg | awk 'NR=1{print $4}')
AUTH=$(grep -r "stats auth" /etc/haproxy/haproxy.cfg | awk 'NR=1{print $3}')
typeset -i N_INSTANCES=0
for appserver in $(awk '/^\s+server/{print $2}' /etc/haproxy/haproxy.cfg)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment