mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Update haproxy-sessions-by-servers
- Minor update to oversight for creating a filtered list for url parsing as opposed to socket parsing.
This commit is contained in:
parent
825cb21450
commit
7b88828210
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user