diff --git a/plugins/haproxy/haproxy-sessions-by-servers b/plugins/haproxy/haproxy-sessions-by-servers index 816fb9e9..896a3e05 100755 --- a/plugins/haproxy/haproxy-sessions-by-servers +++ b/plugins/haproxy/haproxy-sessions-by-servers @@ -28,14 +28,13 @@ function parse_url { if [ ! -z "$url" ]; then LINE1=`curl -s "$url" | head -1 | sed 's/# //'` - LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"` + LINE2=`curl -s "$url" | grep "$PXNAME" | grep -v "$PXNAME,$SVNAME" | tr ',' ' '` fi if [ ! -z "$socket" ]; then LINE1=`echo "show stat" | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'` LINE2=`echo "show stat" | socat unix-connect:"$socket" stdio | grep "$PXNAME" | grep -v "$PXNAME,$SVNAME" | tr ',' ' '` - CMD="echo show stat | socat unix-connect:$socket stdio | grep $PXNAME | grep -v PXNAME,$SVNAME" #echo $CMD #exit fi