Page 1 of 1
Problems with RRD Graphs
Posted: Sat Dec 18, 2010 9:25 am
by Andy_Burn
I'm running Domotiga on Linux Mint 64-bit edition on a dual core Atom board, so far so good.
I cannot get the graphs working at all.
I installed RRDtool and changed permissions to 777 for the whole DomotiGa directory. I set up the devices and graphs option to collect data, but no joy.
Has anyone seen this and fixed it?
Pleae help
Thanks,
Andy
Re: Problems with RRD Graphs
Posted: Sun Dec 19, 2010 8:08 pm
by vdoucet
Andy,
are you trying to produce your own graphs or the simple graphs?
Simple graphs: in the device setup ... x log RRD data / x Enable simple graphing, declare it as belonging to the climate group -> go to the climate tab and you should see your simple graphs. So far I didn't try to go further. But at least you will identify if RRD is working or not

Vincent
Re: Problems with RRD Graphs
Posted: Sun Dec 19, 2010 8:15 pm
by RDNZL
And enable rrdtool debug and watch debug log window for a few minutes.
Re: Problems with RRD Graphs
Posted: Mon Dec 20, 2010 4:45 am
by Andy_Burn
Hey Vdoucet/Ron
I tried both!
Heres an example from my log file
Code: Select all
2010/12/19 19:18:25 [RRDTool] Device with address 'TH1[58114]' named 'Outside has graphing enabled for 'temp'.
2010/12/19 19:18:25 [RRDTool] Graphs: /home/zippy/rrd/graphs/outside-temp
2010/12/19 19:18:25 [RRDTool] Device with address 'TH1[58114]' named 'Outside has graphing enabled for 'humid'.
2010/12/19 19:18:25 [RRDTool] Graphs: /home/zippy/rrd/graphs/outside-humid
2010/12/19 19:18:25 [RRDTool] Device with address 'TH1[45313]' named 'Kitchen Hall has graphing enabled for 'temp'.
2010/12/19 19:18:25 [RRDTool] Graphs: /home/zippy/rrd/graphs/kitchenhall-temp
2010/12/19 19:18:25 [RRDTool] No enabled extended graphs found!
2010/12/19 19:18:25 [RRDTool] Device with address 'TH1[58114]' named 'Outside' has graphing enabled for temp.
2010/12/19 19:18:25 [RRDTool] rrdtool graph /home/zippy/rrd/graphs/outside-temp-1h.png --lazy --start -1h -c SHADEA#FFFFFF -c SHADEB#FFFFFF -c BACK#FFFFFF -t 'Outside Temp' -v '°C' DEF:temp=/home/zippy/rrd/outside.rrd:temp:AVERAGE LINE1:temp#00FF00:'Temp' GPRINT:temp:MIN:'Min\:%1.1lf' GPRINT:temp:MAX:'Max\:%1.1lf' GPRINT:temp:AVERAGE:'Avg\:%1.1lf' GPRINT:temp:LAST:'Last\:%1.1lf'
2010/12/19 19:18:25 [RRDTool] Device with address 'TH1[58114]' named 'Outside' has graphing enabled for humid.
2010/12/19 19:18:25 [RRDTool] rrdtool graph /home/zippy/rrd/graphs/outside-humid-1h.png --lazy --start -1h -c SHADEA#FFFFFF -c SHADEB#FFFFFF -c BACK#FFFFFF -t 'Outside Humid' -v '%' DEF:humid=/home/zippy/rrd/outside.rrd:humid:AVERAGE LINE1:humid#00FF00:'Humid' GPRINT:humid:MIN:'Min\:%1.1lf' GPRINT:humid:MAX:'Max\:%1.1lf' GPRINT:humid:AVERAGE:'Avg\:%1.1lf' GPRINT:humid:LAST:'Last\:%1.1lf'
2010/12/19 19:18:25 [RRDTool] Device with address 'TH1[45313]' named 'Kitchen Hall' has graphing enabled for temp.
2010/12/19 19:18:25 [RRDTool] rrdtool graph /home/zippy/rrd/graphs/kitchenhall-temp-1h.png --lazy --start -1h -c SHADEA#FFFFFF -c SHADEB#FFFFFF -c BACK#FFFFFF -t 'Kitchen Hall Temp' -v '°C' DEF:temp=/home/zippy/rrd/kitchenhall.rrd:temp:AVERAGE LINE1:temp#00FF00:'Temp' GPRINT:temp:MIN:'Min\:%1.1lf' GPRINT:temp:MAX:'Max\:%1.1lf' GPRINT:temp:AVERAGE:'Avg\:%1.1lf' GPRINT:temp:LAST:'Last\:%1.1lf'
2010/12/19 19:18:25 [RRDTool] No enabled extended graphs found!
But no graphs!!
Andy
Re: Problems with RRD Graphs
Posted: Mon Dec 20, 2010 5:17 am
by Andy_Burn
Fixed it! ...Well nearly!
The clue was in the path name.
In the logs it was looking for "/home/zippy/rrd"
I moved the rrd folder from "/home/zippy/domotiga" into "/home/zippy" and I can see graphs!
Is there a place where I can change the path to restore the folder to its proper place?
p.s. which datasource type is best? gauge? My graph units and axes look strange. Please see the attachment.
Kind Regards,
Andy
Re: Problems with RRD Graphs [Solved]
Posted: Mon Dec 20, 2010 7:43 am
by Andy_Burn
Well, it looks like I got it solved.
I disables quick graphs, set up the advanced ones and all is well with units etc.
Thanks for the help guys.
I'm addicted now!
Andy
Re: Problems with RRD Graphs
Posted: Mon Dec 20, 2010 10:41 am
by RDNZL
Andy_Burn wrote:Fixed it! ...Well nearly!
The clue was in the path name.
In the logs it was looking for "/home/zippy/rrd"
I moved the rrd folder from "/home/zippy/domotiga" into "/home/zippy" and I can see graphs!
Is there a place where I can change the path to restore the folder to its proper place?
Strange as the base path is determined automatically, so there is no need to set/change it normally, do the logs turn up in /home/zippy/domotiga/logs ?
Re: Problems with RRD Graphs
Posted: Mon Dec 20, 2010 4:31 pm
by Andy_Burn
Strange as the base path is determined automatically, so there is no need to set/change it normally, do the logs turn up in /home/zippy/domotiga/logs ?
Ron,
No, I had to create a folder "/home/zippy/logs" to collect them. This is recent since I did have older logs. When I click 'view file' button, the filename is now "main-2010-12.log (~/logs)" in gedit. This would suggest its got the path wrong. I might just back up my database again and re-install to see what happens. It may be because I moved it between machines? I set it up originally on my main desktop, before transferring to a low power Atom machine.
Would it be possible to state/change the path manually in settings or conf somewhere?
Thanks,
Andy
Re: Problems with RRD Graphs
Posted: Mon Dec 20, 2010 5:00 pm
by RDNZL
Path is not in db, but foundby code at runtime you see it in startup log.
Will check code but this is first time i see this. Are permissions of domotiga dir ok?
Re: Problems with RRD Graphs
Posted: Tue Dec 21, 2010 2:22 am
by Andy_Burn
I found the reason.
I had a copy of the domotiga.conf on my home directory /home/zippy
When it is removed, DomotiGa correctly looks for log and rrd folders in /home/zippy/domotiga
I moved the folders back to the correct position, and it still works. The main logs now give the correct path.
I guess wherever it finds a copy of the file, it uses that as the main path.
Thanks,

Andy