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_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