bundles/vnstat: adjust vnstati calls for debian bullseye
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-04-11 09:01:58 +02:00
parent 69279ba34f
commit 26c2be07cf
Signed by: kunsi
GPG key ID: 12E3D2136B818350
6 changed files with 39 additions and 33 deletions

View file

@ -8,7 +8,9 @@ then
exit 1
fi
vnstati --output "$TARGET/daily.png" --days
vnstati --output "$TARGET/monthly.png" --months
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
vnstati --output "$TARGET/yearly.png" --years
vnstati --output "$TARGET/top10.png" --top10

View file

@ -6,11 +6,12 @@
</head>
<body style="background-color: #333333; color: #FFFFFF; text-align: center;">
<h1>${node.name} - ${interface}</h1>
<p><img src="/top10.png" alt="TOP 10 Days"></p>
<p><img src="/yesterday.png" alt="Statistics for yesterday"></p>
<p><img src="/daily.png" alt="Daily Statistics"></p>
<p><img src="/monthly.png" alt="monthly Statistics"></p>
<p><img src="/yearly.png" alt=""></p>
<p><img src="/summary.png" alt="Short summary"></p>
<p><img src="/top10.png" alt="Top 10 days"></p>
<p><img src="/hours.png" alt="Statistics for last 24h"></p>
<p><img src="/daily.png" alt="Statistics for last 30 days"></p>
<p><img src="/monthly.png" alt="Statistics for last 12 months"></p>
<p><img src="/yearly.png" alt="Yearly Statistics"></p>
<p>All times in UTC</p>
</body>
</html>

View file

@ -0,0 +1,8 @@
[Unit]
Description=vnstati generator
After=network.target
[Service]
User=root
Group=root
ExecStart=/usr/local/bin/generate-vnstati /var/www/vnstat

View file

@ -0,0 +1,9 @@
[Unit]
Description=Generate vnstati graphs
[Timer]
OnCalendar=*:0/10
Persistent=false
[Install]
WantedBy=timers.target