Projet

Général

Profil

Révision 7b888282

ID7b88828210147a163fe937ba19cb02b72ba0a8ea
Parent 825cb214
Enfant 2e950fcd

Ajouté par Allan Parsons il y a plus de 12 ans

Update haproxy-sessions-by-servers

- Minor update to oversight for creating a filtered list for url parsing as opposed to socket parsing.

Voir les différences:

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