hotsanic |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|---|---|---|
1 | 1 | simandl | #!/usr/bin/env sh |
2 | |
||
3 | . ../../settings |
||
4 | |
||
5 | FIRSTFILE=`ls rrd/|head -n 1` |
||
6 | |
||
7 | if [ `$BINPATH/rrdtool info rrd/$FIRSTFILE|grep -c GAUGE` -gt 0 ]; then |
||
8 | |
||
9 | echo "old-style databases found, update necessary."; |
||
10 | |
||
11 | # update databases if needed |
||
12 | # |
||
13 | FILES=`ls rrd` |
||
14 | for nn in $FILES; do |
||
15 | echo "updating $nn" |
||
16 | $BINPATH/rrdtool tune rrd/$nn --data-source-type success:COUNTER --data-source-type referral:COUNTER --data-sourc e-type nxrrset:COUNTER --data-source-type nxdomain:COUNTER --data-source-type recursion:COUNTER --data-source-type failur e:COUNTER |
||
17 | done |
||
18 | fi |
||
19 | |