Révision 6b94ef02
Change to DERIVE.
Values can return to 0 on service restart which COUNTER data store will not handle well.
| 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