mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00: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
1 changed files with 1 additions and 2 deletions
|
@ -28,14 +28,13 @@ function parse_url {
|
||||||
|
|
||||||
if [ ! -z "$url" ]; then
|
if [ ! -z "$url" ]; then
|
||||||
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
|
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
|
fi
|
||||||
|
|
||||||
if [ ! -z "$socket" ]; then
|
if [ ! -z "$socket" ]; then
|
||||||
LINE1=`echo "show stat" | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
|
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 ',' ' '`
|
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
|
#echo $CMD
|
||||||
#exit
|
#exit
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue