Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/network/tc_drops_ | ||
|---|---|---|
| 42 | 42 |
exit 0 |
| 43 | 43 |
;; |
| 44 | 44 |
config) |
| 45 |
|
|
| 45 |
|
|
| 46 | 46 |
echo "graph_order `mytc $DEVICE | awk '{ print $2 "_" $3 "_drops" }' | tr "\n" " "`"
|
| 47 | 47 |
echo "graph_title $DEVICE TC traffic drops" |
| 48 | 48 |
echo 'graph_args --base 1000' |
| 49 | 49 |
echo 'graph_vlabel drops per ${graph_period}'
|
| 50 | 50 |
echo 'graph_category network' |
| 51 | 51 |
echo "graph_info This graph shows the TC classes traffic drops of the $DEVICE network interface, epxressed in packets." |
| 52 |
|
|
| 52 |
|
|
| 53 | 53 |
# mytc $DEVICE | tr "_" " " | awk '{ print $2 "_" $3 "_" $4 "_drops.label " $2 "/" $3 ":" $4 "\n" $2 "_" $3 "_" $4 "_drops.type COUNTER\n" $2 "_" $3 "_" $4 "_drops.min 0\n" $2 "_" $3 "_" $4 "_drops.cdef " $2 "_" $3 "_" $4 ",8,*" }'
|
| 54 | 54 |
mytc $DEVICE | tr "_" " " | awk '{ print $2 "_" $3 "_" $4 "_drops.label " $2 "/" $3 ":" $4 "\n" $2 "_" $3 "_" $4 "_drops.type DERIVE\n" $2 "_" $3 "_" $4 "_drops.min 0" }'
|
| 55 | 55 |
exit 0 |
Formats disponibles : Unified diff