LinHES Forums http://forums.linhes.org/ |
|
RRDTool and HDtemp - no data - fixed! http://forums.linhes.org/viewtopic.php?f=2&t=20014 |
Page 1 of 1 |
Author: | neutron68 [ Sun Jun 21, 2009 11:00 am ] |
Post subject: | RRDTool and HDtemp - no data - fixed! |
It looks like I have the same situation after an upgrade to R5.5 that Graysky did in this thread: http://www.knoppmyth.net/phpBB2/viewtopic.php?p=117074 I've got a single Western Digital 1TB SATA drive in my KM box (R5.5) and the RRDTool graphs are not showing any HD Temperature data. The RRDTool graphs in Mythweb for the hard drive temperature have the heading "Disk hda ()", and the graphs are empty. I just downloaded the scripts shown in that thread and replaced my /etc/rrd.config and /usr/local/bin/rrd_HDtemp.pl files with the ones supplied. Then I edited the /etc/rrd.config file for only a single hard drive: Code: #=======================================================================
# rrd_HDtemp.pl config: # hard disk temperature #----------------------------------------------------------------------- $HDT_dev = 'hda'; # devices to measure @HDT_colors = ('#0000FF', '#00FF00', '#FF0000', '#00FFFF', '#FF00FF', '#FFFF00'); #======================================================================= I rebooted and have been watching the RRD Tools screens in Mythweb. Thus far, I do not see any data appearing. Later in the mentioned thread, tjc told a person "You may need to purge the DB for that and start fresh." How do you purge the DB? Appreciated, Eric |
Author: | graysky [ Sun Jun 21, 2009 5:27 pm ] |
Post subject: | |
Damn, it's been a while since I have messed around w/ rrdtool. What is the output of hddtemp /dev/sda (or whatever your drive is on the system)? Sorry dude, but I just can't remember what I did to get it working on my system. |
Author: | tjc [ Sun Jun 21, 2009 5:42 pm ] |
Post subject: | |
Code: rm /myth/rrd/log/HDtemp.rrd
|
Author: | neutron68 [ Sun Jun 21, 2009 6:47 pm ] |
Post subject: | HDtemp.rrd |
tjc wrote: Code: rm /myth/rrd/log/HDtemp.rrd Thus far, no data has appeared in the Mythweb graph. Is there anohter place to look for successful temp data collection? Does it make sense that the HDtemp.rrd file is owned by root? Code: root@mythtv:/myth/rrd/log# ls -l
total 852 -rw-r--r-- 1 mythtv mythtv 112856 Jun 21 19:00 CPU.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 21 19:00 Count.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 21 19:00 Disk.rrd -rw-r--r-- 1 root root 28640 Jun 21 19:00 HDtemp.rrd -rw-r--r-- 1 mythtv mythtv 84784 Jun 21 19:00 Load.rrd -rw-r--r-- 1 mythtv mythtv 84784 Feb 22 15:40 MBfan.rrd -rw-r--r-- 1 mythtv mythtv 84784 Jun 21 19:00 MBtemp.rrd -rw-r--r-- 1 mythtv mythtv 140928 Jun 21 19:00 Mem.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 21 19:00 MythFS.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 21 19:00 Net.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 21 19:00 Swap.rrd |
Author: | graysky [ Sun Jun 21, 2009 6:53 pm ] |
Post subject: | |
@neutron - the cron job runs every 5 min as I recall. You can force it manually if you want (look at your crontab for the syntax). I looked at my rrd databases and they are owned by mythtv so try chown them all and see if that makes a difference. I think the cron job runs as root, but it couldn't hurt. Code: # chown -R mythtv:mythtv /myth/rrd/log
|
Author: | neutron68 [ Sun Jun 21, 2009 7:13 pm ] |
Post subject: | changed ownership |
I made the change. Code: root@mythtv:/myth/rrd/log# ls -l So far, the ownership has not made a difference - still no data in the graph.total 852 -rw-r--r-- 1 mythtv mythtv 112856 Jun 21 19:25 CPU.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 21 19:25 Count.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 21 19:25 Disk.rrd -rw-r--r-- 1 mythtv mythtv 28640 Jun 21 19:25 HDtemp.rrd -rw-r--r-- 1 mythtv mythtv 84784 Jun 21 19:25 Load.rrd -rw-r--r-- 1 mythtv mythtv 84784 Feb 22 15:40 MBfan.rrd -rw-r--r-- 1 mythtv mythtv 84784 Jun 21 19:25 MBtemp.rrd -rw-r--r-- 1 mythtv mythtv 140928 Jun 21 19:25 Mem.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 21 19:25 MythFS.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 21 19:25 Net.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 21 19:25 Swap.rrd I ran the rrd command as shown in crontab Code: /usr/local/bin/run_rrd and there was no output.I can tell you that the hard drive does report its temperature if you contact it with the command that is in the script: Code: # /usr/sbin/hddtemp -q /dev/sda
/dev/sda: WDC WD10EACS-00D6B0: 31 C I don't know what other clues I can report. The config file and scripts from tjc are the same ones you used. Eric |
Author: | tjc [ Mon Jun 22, 2009 8:29 pm ] |
Post subject: | |
What do you see if you run: Code: /usr/local/bin/rrd_HDtemp.pl It should say something like this: Code: root@black2:~# /usr/local/bin/rrd_HDtemp.pl hda: 39, hdb: 38 hdt1:hdt2 N:39:38 Also, what does this show: Code: ls -al /myth/rrd/* You should see a set of files for each time period for each RRD script you have enabled. For example: Code: root@black2:~# ls -l /myth/rrd/png/HDtemp-*
-rw-r--r-- 1 mythtv mythtv 20704 Jun 22 21:50 /myth/rrd/png/HDtemp-Daily.png -rw-r--r-- 1 mythtv mythtv 28927 Jun 22 21:50 /myth/rrd/png/HDtemp-Monthly.png -rw-r--r-- 1 mythtv mythtv 24895 Jun 22 21:50 /myth/rrd/png/HDtemp-Weekly.png -rw-r--r-- 1 mythtv mythtv 31012 Jun 22 21:50 /myth/rrd/png/HDtemp-Yearly.png |
Author: | neutron68 [ Mon Jun 22, 2009 8:36 pm ] |
Post subject: | output |
Thanks for the troubleshooting assistance tjc. Code: root@mythtv:~# /usr/local/bin/rrd_HDtemp.pl
/dev/hda: open: No such file or directory hda: 0 hdt1 N:0 root@mythtv:~# ls -al /myth/rrd/* -rw-r--r-- 1 mythtv mythtv 2051 Jun 21 10:58 /myth/rrd/CPU.html -rw-r--r-- 1 mythtv mythtv 2061 Jun 21 10:58 /myth/rrd/Count.html -rw-r--r-- 1 mythtv mythtv 2197 Jun 21 10:58 /myth/rrd/Daily.html -rw-r--r-- 1 mythtv mythtv 2056 Jun 21 10:58 /myth/rrd/Disk.html -rw-r--r-- 1 mythtv mythtv 2066 Jun 21 10:58 /myth/rrd/HDtemp.html -rw-r--r-- 1 mythtv mythtv 2056 Jun 21 10:58 /myth/rrd/Load.html -rw-r--r-- 1 mythtv mythtv 2148 Oct 13 2008 /myth/rrd/MBfan.html -rw-r--r-- 1 mythtv mythtv 2066 Jun 21 10:58 /myth/rrd/MBtemp.html -rw-r--r-- 1 mythtv mythtv 2051 Jun 21 10:58 /myth/rrd/Mem.html -rw-r--r-- 1 mythtv mythtv 2231 Jun 21 10:58 /myth/rrd/Monthly.html -rw-r--r-- 1 mythtv mythtv 2066 Jun 21 10:58 /myth/rrd/MythFS.html -rw-r--r-- 1 mythtv mythtv 2051 Jun 21 10:58 /myth/rrd/Net.html -rw-r--r-- 1 mythtv mythtv 2056 Jun 21 10:58 /myth/rrd/Swap.html -rw-r--r-- 1 mythtv mythtv 2214 Jun 21 10:58 /myth/rrd/Weekly.html -rw-r--r-- 1 mythtv mythtv 2214 Jun 21 10:58 /myth/rrd/Yearly.html -rw-r--r-- 1 mythtv mythtv 1546 Jun 21 10:58 /myth/rrd/index.html -rw-r--r-- 1 mythtv mythtv 125 Jun 21 10:58 /myth/rrd/rrd.conf /myth/rrd/log: total 860 drwxr-xr-x 2 mythtv mythtv 4096 Jun 21 19:00 . drwxr-xr-x 4 mythtv mythtv 4096 Feb 22 16:00 .. -rw-r--r-- 1 mythtv mythtv 112856 Jun 22 20:55 CPU.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 22 20:55 Count.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 22 20:55 Disk.rrd -rw-r--r-- 1 mythtv mythtv 28640 Jun 22 20:57 HDtemp.rrd -rw-r--r-- 1 mythtv mythtv 84784 Jun 22 20:55 Load.rrd -rw-r--r-- 1 mythtv mythtv 84784 Feb 22 15:40 MBfan.rrd -rw-r--r-- 1 mythtv mythtv 84784 Jun 22 20:55 MBtemp.rrd -rw-r--r-- 1 mythtv mythtv 140928 Jun 22 20:55 Mem.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 22 20:55 MythFS.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 22 20:55 Net.rrd -rw-r--r-- 1 mythtv mythtv 56712 Jun 22 20:55 Swap.rrd /myth/rrd/png: total 1476 drwxr-xr-x 2 mythtv mythtv 4096 Feb 10 2008 . drwxr-xr-x 4 mythtv mythtv 4096 Feb 22 16:00 .. -rw-r--r-- 1 mythtv mythtv 28650 Jun 22 20:55 CPU-Daily.png -rw-r--r-- 1 mythtv mythtv 34118 Jun 22 20:55 CPU-Monthly.png -rw-r--r-- 1 mythtv mythtv 32220 Jun 22 20:55 CPU-Weekly.png -rw-r--r-- 1 mythtv mythtv 39135 Jun 22 20:55 CPU-Yearly.png -rw-r--r-- 1 mythtv mythtv 17707 Jun 22 20:55 Count-Daily.png -rw-r--r-- 1 mythtv mythtv 19177 Jun 22 20:55 Count-Monthly.png -rw-r--r-- 1 mythtv mythtv 18077 Jun 22 20:55 Count-Weekly.png -rw-r--r-- 1 mythtv mythtv 20946 Jun 22 20:55 Count-Yearly.png -rw-r--r-- 1 mythtv mythtv 41096 Jun 22 20:55 Disk-Daily.png -rw-r--r-- 1 mythtv mythtv 79282 Jun 22 20:55 Disk-Monthly.png -rw-r--r-- 1 mythtv mythtv 48698 Jun 22 20:55 Disk-Weekly.png -rw-r--r-- 1 mythtv mythtv 68701 Jun 22 20:55 Disk-Yearly.png -rw-r--r-- 1 mythtv mythtv 14620 Jun 22 20:57 HDtemp-Daily.png -rw-r--r-- 1 mythtv mythtv 15434 Jun 22 20:57 HDtemp-Monthly.png -rw-r--r-- 1 mythtv mythtv 15379 Jun 22 20:57 HDtemp-Weekly.png -rw-r--r-- 1 mythtv mythtv 14336 Jun 22 20:57 HDtemp-Yearly.png -rw-r--r-- 1 mythtv mythtv 38617 Jun 22 20:55 Load-Daily.png -rw-r--r-- 1 mythtv mythtv 62686 Jun 22 20:55 Load-Monthly.png -rw-r--r-- 1 mythtv mythtv 44668 Jun 22 20:55 Load-Weekly.png -rw-r--r-- 1 mythtv mythtv 35721 Jun 22 20:55 Load-Yearly.png -rw-r--r-- 1 mythtv mythtv 22148 Feb 22 15:40 MBfan-Daily.png -rw-r--r-- 1 mythtv mythtv 20773 Feb 22 15:40 MBfan-Monthly.png -rw-r--r-- 1 mythtv mythtv 21605 Feb 22 15:40 MBfan-Weekly.png -rw-r--r-- 1 mythtv mythtv 19748 Feb 22 15:40 MBfan-Yearly.png -rw-r--r-- 1 mythtv mythtv 19402 Jun 22 20:55 MBtemp-Daily.png -rw-r--r-- 1 mythtv mythtv 18813 Jun 22 20:55 MBtemp-Monthly.png -rw-r--r-- 1 mythtv mythtv 19132 Jun 22 20:55 MBtemp-Weekly.png -rw-r--r-- 1 mythtv mythtv 17836 Jun 22 20:55 MBtemp-Yearly.png -rw-r--r-- 1 mythtv mythtv 28685 Jun 22 20:55 Mem-Daily.png -rw-r--r-- 1 mythtv mythtv 45630 Jun 22 20:55 Mem-Monthly.png -rw-r--r-- 1 mythtv mythtv 35997 Jun 22 20:55 Mem-Weekly.png -rw-r--r-- 1 mythtv mythtv 56254 Jun 22 20:55 Mem-Yearly.png -rw-r--r-- 1 mythtv mythtv 19889 Jun 22 20:55 MythFS-Daily.png -rw-r--r-- 1 mythtv mythtv 20426 Jun 22 20:55 MythFS-Monthly.png -rw-r--r-- 1 mythtv mythtv 19804 Jun 22 20:55 MythFS-Weekly.png -rw-r--r-- 1 mythtv mythtv 23351 Jun 22 20:55 MythFS-Yearly.png -rw-r--r-- 1 mythtv mythtv 47708 Jun 22 20:55 Net-Daily.png -rw-r--r-- 1 mythtv mythtv 61542 Jun 22 20:55 Net-Monthly.png -rw-r--r-- 1 mythtv mythtv 40035 Jun 22 20:55 Net-Weekly.png -rw-r--r-- 1 mythtv mythtv 69653 Jun 22 20:55 Net-Yearly.png -rw-r--r-- 1 mythtv mythtv 19757 Jun 22 20:55 Swap-Daily.png -rw-r--r-- 1 mythtv mythtv 20057 Jun 22 20:55 Swap-Monthly.png -rw-r--r-- 1 mythtv mythtv 20025 Jun 22 20:55 Swap-Weekly.png -rw-r--r-- 1 mythtv mythtv 24073 Jun 22 20:55 Swap-Yearly.png root@mythtv:~# |
Author: | tjc [ Mon Jun 22, 2009 8:41 pm ] |
Post subject: | |
Pretty sure this is your smoking gun: Code: /dev/hda: open: No such file or directory
|
Author: | neutron68 [ Mon Jun 22, 2009 8:54 pm ] |
Post subject: | that is a clue... |
tjc wrote: Pretty sure this is your smoking gun: Code: /dev/hda: open: No such file or directory That was my thought, as well. ![]() Well, even with that clue, I looked and looked for about an hour and just found the problem! I somehow put the wrong drive id in the config file! Here is a snip of the wrong way: Code: #======================================================================= # rrd_HDtemp.pl config: # hard disk temperature #----------------------------------------------------------------------- $HDT_dev = 'hda'; # devices to measure @HDT_colors = ('#0000FF', '#00FF00', '#FF0000', '#00FFFF', '#FF00FF', '#FFFF00'); #======================================================================= and here is the correct way. Code: #======================================================================= I can't believe I didn't see that yesterday! I think it's working....# rrd_HDtemp.pl config: # hard disk temperature #----------------------------------------------------------------------- $HDT_dev = 'sda'; # devices to measure @HDT_colors = ('#0000FF', '#00FF00', '#FF0000', '#00FFFF', '#FF00FF', '#FFFF00'); #======================================================================= Code: root@mythtv:/myth/rrd/log# /usr/local/bin/rrd_HDtemp.pl
sda: 28 hdt1 N:28 I've got graph data! THANK YOU for the nudge to the finish line! ![]() Eric |
Author: | neutron68 [ Tue Jun 23, 2009 10:52 am ] |
Post subject: | any idea how to get drive name in graph? |
Any idea what I need to edit to get the hard drive name to appear at the top of the graph? Right now it just says: "Disk temperature :: day" at the top of the graph. Graysky, I know you saw this missing drive name, too. Did you ever get it figured out? Thanks! Eric |
Author: | graysky [ Tue Jun 23, 2009 12:32 pm ] |
Post subject: | Re: any idea how to get drive name in graph? |
neutron68 wrote: Graysky, I know you saw this missing drive name, too. Did you ever get it figured out?
I can't remember... when I get home I'll have a look and let you know in this thread. |
Author: | neutron68 [ Sat Jun 27, 2009 4:39 pm ] |
Post subject: | Re: any idea how to get drive name in graph? |
graysky wrote: neutron68 wrote: Graysky, I know you saw this missing drive name, too. Did you ever get it figured out? I can't remember... when I get home I'll have a look and let you know in this thread. Hi Graysky, I wonder if you had a chance to look at your system? Thanks, Eric |
Author: | tjc [ Sun Jun 28, 2009 11:45 am ] |
Post subject: | |
The disk name isn't in the title at the top of the graph because it's now a combined graph for multiple drives. For example on my production box there are lines for 2-3 drives (depending on whether the backup drive is on). This makes it easier to see the relative temperatures of the drives and spot any ventilation/cooling problems, versus just ambient temperature affects. This may not be obvious if you're only using a single drive the single drive, but add a second or more and it'll make sense. BTW - With sufficient perl-fu it wouldn't be all that hard to make the script detect the single drive case and change the title accordingly. |
Author: | neutron68 [ Sun Jun 28, 2009 8:06 pm ] |
Post subject: | oh |
Oh, ok. I understand. Thanks for the clarification tjc. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |