hotsanic |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|---|---|---|
1 | 1 | simandl | #!/usr/bin/env sh |
2 | |
||
3 | . ../../settings |
||
4 | |
||
5 | if [ `$BINPATH/rrdtool info rrd/proc.rrd |grep max |grep -cv NaN` -gt 0 ]; then |
||
6 | |
||
7 | echo "old-style databases found, update necessary."; |
||
8 | |
||
9 | # update databases if needed |
||
10 | # |
||
11 | $BINPATH/rrdtool tune rrd/proc.rrd -a procslp:U -a procrun:U -a proczmb:U -a procstp:U -a procdsc:U |
||
12 | fi |
||
13 | |
||
14 | if [ -e rrd/loadavg.rrd ]; then |
||
15 | echo "old DBname detected, renaming..." |
||
16 | mv -f rrd/loadavg.rrd rrd/load.rrd |
||
17 | cd ../.. |
||
18 | ./makeindex.pl |
||
19 | fi |
||
20 | |