Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/printer/hp2600_status_ | ||
|---|---|---|
| 15 | 15 |
|
| 16 | 16 |
do_stats () {
|
| 17 | 17 |
count=1 |
| 18 |
for I in `get_data`; do
|
|
| 19 |
[ $count = 1 ] && echo "statb.value $I"
|
|
| 20 |
[ $count = 4 ] && echo "staty.value $I"
|
|
| 21 |
[ $count = 7 ] && echo "statc.value $I"
|
|
| 22 |
[ $count = 10 ] && echo "statm.value $I"
|
|
| 18 |
for I in `get_data`; do |
|
| 19 |
[ $count = 1 ] && echo "statb.value $I" |
|
| 20 |
[ $count = 4 ] && echo "staty.value $I" |
|
| 21 |
[ $count = 7 ] && echo "statc.value $I" |
|
| 22 |
[ $count = 10 ] && echo "statm.value $I" |
|
| 23 | 23 |
count=$(($count + 1)) |
| 24 | 24 |
done |
| 25 | 25 |
|
| ... | ... | |
| 29 | 29 |
config) |
| 30 | 30 |
cat <<'EOF' |
| 31 | 31 |
host_name printers |
| 32 |
graph_title HP 2600 cartridge status
|
|
| 32 |
graph_title HP 2600 cartridge status |
|
| 33 | 33 |
graph_vlabel Status (%) |
| 34 | 34 |
graph_category printing |
| 35 | 35 |
graph_info Toner status. |
| 36 |
graph_args --upper-limit 400 -l 0
|
|
| 36 |
graph_args --upper-limit 400 -l 0 |
|
| 37 | 37 |
line.label --- |
| 38 | 38 |
line.line 400 |
| 39 | 39 |
statb.label Black |
Formats disponibles : Unified diff