Re: Current values in HTML Summary pulling from wrong ds
"Robert Woodcock" <[email protected]>
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday, March 21, 2007, Jordan Share wrote:
> I am also seeing this exact behavior (also using etch).
>
> I would love to find out how to fix this.
Here's what I did to fix it:
1. Wait for collector run to finish, and comment it out in cron to
stop it from running
2. Back up your Cricket RRDs
cp -a /var/lib/cricket /var/lib/cricket-backup
3. Dump your rrds, munging them into 0001 format in the process
with this script
#!/bin/sh
find /var/lib/cricket -name '*.rrd' | (
while read RRDFILE
do
XMLFILE=$(echo $RRDFILE | sed s/rrd$/xml/)
rrdtool dump $RRDFILE | sed 's,<version> 0003
</version>,<version> 0001 </version>,' | grep -v 'params>' | grep -v
'_value>' > $XMLFILE
chown cricket.cricket $XMLFILE
done
)
4. Downgrade rrdtool and librrds-perl to 1.0.49 (from Debian Sarge)
5. Restore your RRDs with this script
#!/bin/sh
find /var/lib/cricket -name '*.xml' | (
while read XMLFILE
do
RRDFILE=$(echo $XMLFILE | sed s/xml$/rrd/)
rm -f $RRDFILE
rrdtool restore $XMLFILE $RRDFILE
chown cricket.cricket $RRDFILE
done
)
6. Test CGI scripts
7. Allow the collector to run again and watch the collector log
carefully
8. Put the packages on hold so apt-get won't upgrade them:
cat << EOF | dpkg --set-selections
librrds-perl hold
rrdtool hold
EOF
Now - with that out of the way - is there ANYONE successfully using
cricket
with version 0003 RRDs (without running into the HTML summary problem)?
You
can check an RRD's version by running:
rrdtool dump [rrd file] | grep version
If so, I'd like to hear what version of cricket and librrds-perl you are
running and where you got them from (which distribution, etc).
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV