From deab3baf6ed33f12f89fcf220185b11047e3b0ff Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Thu, 19 Jan 2023 06:15:56 +0100 Subject: [PATCH] server stats script update --- bin/stats.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/stats.sh b/bin/stats.sh index e2da51df..dad979d8 100755 --- a/bin/stats.sh +++ b/bin/stats.sh @@ -1,6 +1,7 @@ #!/bin/sh output="/var/www/systemchaos.org/www/htdocs/stats/" +outputhanez="/var/www/hanez.org/www/htdocs/stats/" nic="eth0" name=$(hostname) @@ -32,10 +33,11 @@ generate_index() { } #if [ ! -f "$output"/index.html ]; then - mkdir -p $output - generate_index > "$output"/index.html +# mkdir -p $output +# generate_index > "$output"/index.html #fi for type in fiveminutes hours hoursgraph days top months years summary hsummary vsummary; do - vnstati --${type} -i $nic -o $output/${type}.png + #vnstati --${type} -i $nic -o $output/${type}.png + vnstati --${type} -i $nic -ne -o $outputhanez/${type}.png done