Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/network/tc_packets_ | ||
|---|---|---|
| 42 | 42 |
exit 0 |
| 43 | 43 |
;; |
| 44 | 44 |
config) |
| 45 |
|
|
| 45 |
|
|
| 46 | 46 |
echo "graph_order `mytc $DEVICE | awk '{ print $2 "_" $3 "_packets" }' | tr "\n" " "`"
|
| 47 | 47 |
echo "graph_title $DEVICE TC traffic packets" |
| 48 | 48 |
echo 'graph_args --base 1000' |
| 49 | 49 |
echo 'graph_vlabel packets per ${graph_period}'
|
| 50 | 50 |
echo 'graph_category network' |
| 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 | 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 |
Formats disponibles : Unified diff