bundles/vnstat: add graph for "yesterday"

This commit is contained in:
Franzi 2020-11-19 16:52:45 +01:00
parent fd99334a66
commit 6ad28bb375
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 2 additions and 0 deletions

View file

@ -7,6 +7,7 @@
<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>

View file

@ -35,6 +35,7 @@ def nginx_dashboard(metadata):
return {
'cron': {
'vnstat_yesterday_graph': '0 0 * * * root /usr/bin/vnstati --output "/var/www/vnstat/yesterday.png" --hours > /dev/null 2>/dev/null',
'vnstat_generate_web_dashboard': '*/10 * * * * root /usr/local/bin/generate-vnstati /var/www/vnstat > /dev/null 2>/dev/null',
},
'nginx': {