server stats script update
This commit is contained in:
parent
4913778c25
commit
deab3baf6e
1 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
output="/var/www/systemchaos.org/www/htdocs/stats/"
|
output="/var/www/systemchaos.org/www/htdocs/stats/"
|
||||||
|
outputhanez="/var/www/hanez.org/www/htdocs/stats/"
|
||||||
nic="eth0"
|
nic="eth0"
|
||||||
name=$(hostname)
|
name=$(hostname)
|
||||||
|
|
||||||
|
|
@ -32,10 +33,11 @@ generate_index() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#if [ ! -f "$output"/index.html ]; then
|
#if [ ! -f "$output"/index.html ]; then
|
||||||
mkdir -p $output
|
# mkdir -p $output
|
||||||
generate_index > "$output"/index.html
|
# generate_index > "$output"/index.html
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
for type in fiveminutes hours hoursgraph days top months years summary hsummary vsummary; do
|
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
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue