From d3267c0419ddb53298cccf8ca725b87863515d7d Mon Sep 17 00:00:00 2001 From: Pasha Klets Date: Fri, 24 Jun 2011 12:09:50 +0200 Subject: [PATCH] Initial version --- plugins/other/haproxy-errors | 52 ++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 plugins/other/haproxy-errors diff --git a/plugins/other/haproxy-errors b/plugins/other/haproxy-errors new file mode 100755 index 00000000..03cb98b2 --- /dev/null +++ b/plugins/other/haproxy-errors @@ -0,0 +1,52 @@ +#!/bin/sh +# Pasha "p01nt" Klets + +name=`basename $0` +title=`echo ${name} | awk -F_ '{print $NF}'` + +hp_stat() { + echo "show stat" | socat unix-connect:/tmp/haproxy stdio +} + +labels() { + cat <