Révision 7b888282
Update haproxy-sessions-by-servers
- Minor update to oversight for creating a filtered list for url parsing as opposed to socket parsing.
| plugins/haproxy/haproxy-sessions-by-servers | ||
|---|---|---|
| 28 | 28 |
|
| 29 | 29 |
if [ ! -z "$url" ]; then |
| 30 | 30 |
LINE1=`curl -s "$url" | head -1 | sed 's/# //'` |
| 31 |
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
|
|
| 31 |
LINE2=`curl -s "$url" | grep "$PXNAME" | grep -v "$PXNAME,$SVNAME" | tr ',' ' '`
|
|
| 32 | 32 |
fi |
| 33 | 33 |
|
| 34 | 34 |
if [ ! -z "$socket" ]; then |
| 35 | 35 |
LINE1=`echo "show stat" | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'` |
| 36 | 36 |
LINE2=`echo "show stat" | socat unix-connect:"$socket" stdio | grep "$PXNAME" | grep -v "$PXNAME,$SVNAME" | tr ',' ' '` |
| 37 | 37 |
|
| 38 |
CMD="echo show stat | socat unix-connect:$socket stdio | grep $PXNAME | grep -v PXNAME,$SVNAME" |
|
| 39 | 38 |
#echo $CMD |
| 40 | 39 |
#exit |
| 41 | 40 |
fi |
Formats disponibles : Unified diff