bundles/vnstat: add flag to generate statistics images, add to home.router
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
2d856a1e9a
commit
7d78ac9db8
6 changed files with 73 additions and 9 deletions
14
bundles/vnstat/files/generate-vnstati
Normal file
14
bundles/vnstat/files/generate-vnstati
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
TARGET=$1
|
||||
|
||||
if [[ -z "$TARGET" ]]
|
||||
then
|
||||
echo "Usage: $0 <TARGET_DIR>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
vnstati --output "$TARGET/daily.png" --days
|
||||
vnstati --output "$TARGET/monthly.png" --months
|
||||
vnstati --output "$TARGET/yearly.png" --years
|
||||
vnstati --output "$TARGET/top10.png" --top10
|
Loading…
Add table
Add a link
Reference in a new issue