Problems with RRD Graphs

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
Andy_Burn
Starting Member
Starting Member
Posts: 43
Joined: Sun Nov 28, 2010 10:47 pm

Problems with RRD Graphs

Post 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
User avatar
vdoucet
Starting Member
Starting Member
Posts: 20
Joined: Sat Nov 13, 2010 3:01 pm
Location: Pau, France

Re: Problems with RRD Graphs

Post 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
Ubuntu 10.10 + Domotiga 0.1.194 + Gambas 2.21
Interface PLCBUS II-T PLC1141 G+ (USB) ; 2x PLCBUS2-R PLC2268HX2 ; 2x PLCBUS II-R PLC2267-H ; 1x PLCBUS II-R PLC2267-K
Oregon Scientific (7x THN132ES, 3x THGN132ES, 1x PCR800)
RFXCOM (USB ; firmware 20)
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Problems with RRD Graphs

Post by RDNZL »

And enable rrdtool debug and watch debug log window for a few minutes.
Regards, Ron.
Andy_Burn
Starting Member
Starting Member
Posts: 43
Joined: Sun Nov 28, 2010 10:47 pm

Re: Problems with RRD Graphs

Post 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
Andy_Burn
Starting Member
Starting Member
Posts: 43
Joined: Sun Nov 28, 2010 10:47 pm

Re: Problems with RRD Graphs

Post 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! :D
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
Attachments
Screenshot of Graph Labels and Axes
Screenshot of Graph Labels and Axes
Screenshot.png (132.66 KiB) Viewed 8504 times
Andy_Burn
Starting Member
Starting Member
Posts: 43
Joined: Sun Nov 28, 2010 10:47 pm

Re: Problems with RRD Graphs [Solved]

Post 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
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Problems with RRD Graphs

Post 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! :D
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 ?
Regards, Ron.
Andy_Burn
Starting Member
Starting Member
Posts: 43
Joined: Sun Nov 28, 2010 10:47 pm

Re: Problems with RRD Graphs

Post 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
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Problems with RRD Graphs

Post 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?
Regards, Ron.
Andy_Burn
Starting Member
Starting Member
Posts: 43
Joined: Sun Nov 28, 2010 10:47 pm

Re: Problems with RRD Graphs

Post 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
Post Reply

Return to “DomotiGa Forum”