LinHES Forums http://forum.linhes.org/ |
|
R5F1 rrdtool not working on fresh install? http://forum.linhes.org/viewtopic.php?f=11&t=15255 |
Page 1 of 1 |
Author: | rollit12 [ Thu May 17, 2007 12:31 pm ] |
Post subject: | R5F1 rrdtool not working on fresh install? |
I just installed R5F1 on a fresh dragon2 system, and when I go to the RRDTool link on the front page, I get: The requested URL /rrd/index.html was not found on this server. I followed along with the R5E50 setup instructions on the Hints and Tips forum and that worked great when I was running R5E50, but it appears R5F1 is different. Any suggestions on how to get it work? |
Author: | rollit12 [ Thu May 17, 2007 5:04 pm ] |
Post subject: | |
So, it appears I am answering my own question. ![]() The non-elegant way of getting it to work is this: Login as mythtv. Easiest way is to login as your own user, su - mythtv (default password is mythtv). su - mythtv cd /myth/rrd cp /var/www/rrdtool_*.html . mkdir rrdtool log png cd rrdtool ln -s ../png/CPU-Daily.png cpu-day.png ln -s ../png/CPU-Monthly.png cpu-month.png ln -s ../png/CPU-Weekly.png cpu-week.png ln -s ../png/CPU-Yearly.png cpu-year.png ln -s ../png/Net-Daily.png eth0-day.png ln -s ../png/Net-Monthly.png eth0-month.png ln -s ../png/Net-Weekly.png eth0-week.png ln -s ../png/Net-Yearly.png eth0-year.png ln -s ../png/Disk-Daily.png hda-day.png ln -s ../png/Disk-Monthly.png hda-month.png ln -s ../png/Disk-Weekly.png hda-week.png ln -s ../png/Disk-Yearly.png hda-year.png ln -s ../png/Mem-Daily.png memory-day.png ln -s ../png/Mem-Monthly.png memory-month.png ln -s ../png/Mem-Weekly.png memory-week.png ln -s ../png/Mem-Yearly.png memory-year.png ln -s ../png/Swap-Daily.png swap-day.png ln -s ../png/Swap-Monthly.png swap-month.png ln -s ../png/Swap-Weekly.png swap-week.png ln -s ../png/Swap-Yearly.png swap-year.png Now do the following operations as root: Modify /usr/local/bin/run_rrd and modify it so it looks like this: #!/bin/sh # ./run_rrd cd /usr/local/bin RRD='CPU Load Mem Swap Net Disk' DIR='.' # for x in $RRD ; do $DIR/rrd_${x}.pl >& /dev/null done # exit 0 # End edit root's crontab file (crontab -e) and put this line in there: */5 * * * * /usr/local/bin/run_rrd Add the following link as www-data: cd /var/www ln -s /myth/rrd rrd That's it. You should not have to reboot or restart anything. After about 15 minutes or so, you should start seeing data flow into your graphs. If you want to make the graphs look a little less squished, you can edit the rrd_tool_*.html files and remove the width and height arguments in front of each of the png files. Nice thing about this is, with a Dragon2 using SATA drives the drive activity is now captured. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |