2020-11-16 16:07:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-12-12 06:56:23 +00:00
|
|
|
set -xeuo pipefail
|
2020-11-16 16:07:05 +00:00
|
|
|
|
2022-12-12 06:56:23 +00:00
|
|
|
TARGET="/var/www/vnstat"
|
2020-11-16 16:07:05 +00:00
|
|
|
|
2021-04-11 07:01:58 +00:00
|
|
|
vnstati --output "$TARGET/summary.png" --summary
|
|
|
|
vnstati --output "$TARGET/top10.png" --top 10
|
|
|
|
vnstati --output "$TARGET/hours.png" --hoursgraph
|
|
|
|
vnstati --output "$TARGET/daily.png" --days 30
|
|
|
|
vnstati --output "$TARGET/monthly.png" --months 12
|
2020-11-16 16:07:05 +00:00
|
|
|
vnstati --output "$TARGET/yearly.png" --years
|