From f18f338bbce69b1128493c929e1375dbad0225a9 Mon Sep 17 00:00:00 2001 From: Pasha Klets Date: Fri, 24 Jun 2011 12:07:11 +0200 Subject: [PATCH] Initial version --- plugins/other/haproxy-sessions | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 plugins/other/haproxy-sessions diff --git a/plugins/other/haproxy-sessions b/plugins/other/haproxy-sessions new file mode 100755 index 00000000..5cceb065 --- /dev/null +++ b/plugins/other/haproxy-sessions @@ -0,0 +1,47 @@ +#!/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 <