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_packets_
51 51
	echo "graph_info This graph shows the TC classes traffic packets of the $DEVICE network interface."
52 52
	
53 53
#	mytc $DEVICE | tr "_" " " | awk '{ print $2 "_" $3 "_" $4 "_packets.label " $2 "/" $3 ":" $4 "\n" $2 "_" $3 "_" $4 "_packets.type COUNTER\n" $2 "_" $3 "_" $4 "_packets.min 0\n" $2 "_" $3 "_" $4 "_packets.cdef " $2 "_" $3 "_" $4 ",8,*" }'
54
	mytc $DEVICE | tr "_" " " | awk '{ print $2 "_" $3 "_" $4 "_packets.label " $2 "/" $3 ":" $4 "\n" $2 "_" $3 "_" $4 "_packets.type COUNTER\n" $2 "_" $3 "_" $4 "_packets.min 0" }'
54
	mytc $DEVICE | tr "_" " " | awk '{ print $2 "_" $3 "_" $4 "_packets.label " $2 "/" $3 ":" $4 "\n" $2 "_" $3 "_" $4 "_packets.type DERIVE\n" $2 "_" $3 "_" $4 "_packets.min 0" }'
55 55
        exit 0
56 56
	;;
57 57
esac

Formats disponibles : Unified diff