Projet

Général

Profil

Révision 6b94ef02

ID6b94ef028424e6ae0d9bd80b99f94d8251ba6067
Parent b47505ce
Enfant 56aa1392

Ajouté par Samuel Smith il y a presque 10 ans

Change to DERIVE.

Values can return to 0 on service restart which COUNTER data store will not handle well.

Voir les différences:

plugins/network/tc_
50 50
	echo 'graph_category network'
51 51
	echo "graph_info This graph shows the TC classes traffic of the $DEVICE network interface. Please note that the traffic is shown in bits per second, not bytes."
52 52
	
53
	mytc $DEVICE | tr "_" " " | awk '{ print $2 "_" $3 "_" $4 ".label " $2 "/" $3 ":" $4 "\n" $2 "_" $3 "_" $4 ".type COUNTER\n" $2 "_" $3 "_" $4 ".min 0\n" $2 "_" $3 "_" $4 ".cdef " $2 "_" $3 "_" $4 ",8,*" }'
53
	mytc $DEVICE | tr "_" " " | awk '{ print $2 "_" $3 "_" $4 ".label " $2 "/" $3 ":" $4 "\n" $2 "_" $3 "_" $4 ".type DERIVE\n" $2 "_" $3 "_" $4 ".min 0\n" $2 "_" $3 "_" $4 ".cdef " $2 "_" $3 "_" $4 ",8,*" }'
54 54
        exit 0
55 55
	;;
56 56
esac

Formats disponibles : Unified diff