#!/bin/sh
output="/var/www/systemchaos.org/www/htdocs/stats/"
outputhanez="/var/www/hanez.org/www/htdocs/statistics/"
nic="eth0"
name=$(hostname)
generate_index() {
cat <<-EOF
$name: $nic network statistics
EOF
}
#if [ ! -f "$output"/index.html ]; then
# 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 -ne -o $outputhanez/${type}.png
done