RRD graphs not updating in Server

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
cmrdomo
Starting Member
Starting Member
Posts: 7
Joined: Thu Feb 09, 2012 1:05 am

RRD graphs not updating in Server

Post by cmrdomo »

Hi!

I'm new to Domotiga, but so far i'm loving it!

I have successfully installed a Domotiga server on an Iconnect Iomega (ARM). I connect to it using Domotiga client from a Linux distro installed on a PC.

Problems:
RRD files are being updated with temp values from my Oregon Sensors, but no luck with graphs.
First: my Climate page in Domotiga client shows values stored in server SQL database. But Climate displays graphs from the client (.png files in client graphs directory) not the ones in Server.
Second: looking at debug files from RRD tool when i access climate page, it's issued a command line for updating the graphs but there's no change in graphs server directory.
If i copy paste the line command to a ssh session to Iconnect the .png graph file is updated.

Question: Why Server can't update the graphs? What seems to be the reason for Client not showing the graphs located in Server?
Please help!
Thanx in advance.

Carlos
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: RRD graphs not updating in Server

Post by RDNZL »

I have added support for displaying graphs from server on clients n version 01.203. It uses http and new main graphsurl setting in main gui settings.
Please read svn comments for that version and test it.
Regards, Ron.
cmrdomo
Starting Member
Starting Member
Posts: 7
Joined: Thu Feb 09, 2012 1:05 am

After update 1203 RRD graphs not updating in Server

Post by cmrdomo »

So i updated DomotiGa.

Still no luck.
I didn't quite understand what kind of url should i put in Client configuration regarding RRD.
In log files the download of the last graph created failed. The download is made to the client or stays in server?

See log:

Code: Select all

2012/02/13 23:51:23 [RRDTool] No device(s) with simple graphing enabled found in group 'Climate'!
2012/02/13 23:51:23 [RRDTool] Extended Graph with name 'TempExt' is in group named 'Climate'.
2012/02/13 23:51:23 [RRDTool] Graphs: /home/cmr/domotiga/rrd/graphs/tempext
2012/02/13 23:51:23 [RRDTool] No device(s) with graphing enabled found!
2012/02/13 23:51:24 [RRDTool] rrdtool graph /home/cmr/domotiga/rrd/graphs/tempext-54.png --lazy --start end-54 -a PNG --slope-mode --font DEFAULT:7: --watermark 'Domotiga v0.1.203' --width 400 --height 100 -c BACK#FFFFFF -c CANVAS#FFFFFF -c SHADEA#FFFFFF -c SHADEB#FFFFFF -c GRID#000000 -c MGRID#000000 -c FONT#000000 -c AXIS#000000 -c FRAME#000000 -c ARROW#000000 --title='Temperatura Exterior' --vertical-label '°C' DEF:outsidesensor_temp=/home/cmr/domotiga/rrd/outsidesensor.rrd:temp:AVERAGE DEF:temp1exterior_temp=/home/cmr/domotiga/rrd/temp1exterior.rrd:temp:AVERAGE COMMENT:'\s' COMMENT:'                      ' COMMENT:'\l' LINE1:outsidesensor_temp#AA0000:'Outside Temp        ' COMMENT:'\s' COMMENT:'\s' LINE1:temp1exterior_temp#00FF00:'Temp1  Exterior     ' COMMENT:'\s' COMMENT:'\s'  COMMENT:'Date \: 2012-2-13 23\:51\:24\r' 2>&1 >/dev/null
2012/02/13 23:51:24 [RRDTool] Failed to download graph 'http://localhost/home/cmr/domotiga/rrd/graphs/tempext-54.png'
2012/02/13 23:53:04 [Devices] Device of type 'TEMP2' with address 'TEMP2[7170]' and interface 'RFXCom Receiver' not found!
2012/02/13 23:53:54 [RRDTool] rrdtool update /home/cmr/domotiga/rrd/11.rrd N:10.2:37
2012/02/13 23:53:54 [RRDTool] rrdtool update /home/cmr/domotiga/rrd/54.rrd N:10.2
2012/02/13 23:54:26 [Devices] Device of type 'TEMP2' with address 'TEMP2[7170]' and interface 'RFXCom Receiver' not found!
2012/02/13 23:55:07 [Devices] Device of type 'TEMP2' with address 'TEMP2[7170]' and interface 'RFXCom Receiver' not found!
2012/02/13 23:55:07 [Devices] Device of type 'TEMP2' with address 'TEMP2[7170]' and interface 'RFXCom Receiver' not found!
2012/02/13 23:56:29 [Devices] Device of type 'TEMP2' with address 'TEMP2[7170]' and interface 'RFXCom Receiver' not found!
2012/02/13 23:57:51 [Devices] Device of type 'TEMP2' with address 'TEMP2[7170]' and interface 'RFXCom Receiver' not found!
2012/02/13 23:58:32 [Devices] Device of type 'TEMP2' with address 'TEMP2[7170]' and interface 'RFXCom Receiver' not found!
2012/02/13 23:58:54 [RRDTool] rrdtool update /home/cmr/domotiga/rrd/11.rrd N:10.2:37
2012/02/13 23:58:54 [RRDTool] rrdtool update /home/cmr/domotiga/rrd/54.rrd N:9.5
I issued a ls -l command in RRD directory all rrd files are from "root" (user) Group "root"; Graphs directory is from "cmr"; group users.
Looking at Graphs all png not updated are "cmr" (install date) except for an extended graph i created today owned by root.

Regarding DomotiGa client , there are no graphs displayed (old or new ones).
Where is supposed to be the new extended graph displayed? Climate tab?

Kind Regards,

Carlos

Code: Select all

5
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: RRD graphs not updating in Server

Post by RDNZL »

Yes there is a bug (or two) in the rrdtool code since last update. It's better to revert it.
Regards, Ron.
cmrdomo
Starting Member
Starting Member
Posts: 7
Joined: Thu Feb 09, 2012 1:05 am

Re: RRD graphs not updating in Server

Post by cmrdomo »

The failed download to URL is possibly related to me not updating apache configuration. Sorry
But regarding the second part of previous message:
If all was working right, the .png flies created by RRD tool should be own by whom? Root or cmr user ?
I probably installed Domotiga using my cmr login and maybe, I'm not sure, installed RRD under root.
How can i see the error when rrdtool issue a command for updating graph?
Line command errors don't appear in Domotiga logs. If there's some kind of permission denied response i can not see it.
Maybe my problems are all due to permissions.
Your excellent program has a downside effect, it attracts complete dummies to Linux :)
Since i discovered Domotiga I've been learning Linux (since late november).

Regards,

Carlos
cmrdomo
Starting Member
Starting Member
Posts: 7
Joined: Thu Feb 09, 2012 1:05 am

HELP: RRD graphs not updating in Server

Post by cmrdomo »

I need help!

RRDtool doesn't upgrade the png files on server. The data files .RRD are updated but when i click the climate tab on Client, there's a issue line command like "RRDTOOL graph ...." but i can't see no error and no update in graphs directory.

Also, please tell me what does this mean?
[RRDTool] Failed to download graph 'http://localhost/home/cmr/domotiga/rrd/ ... ext-54.png'

Is this Download to server directory or download to client's graphs directory ?

Can anyone show me a ls -l capture of the graphs directory? I think my permissions are okay but i still have doubts.

Thanx.

Carlos
diddie
Starting Member
Starting Member
Posts: 5
Joined: Fri Oct 07, 2011 8:56 pm

Re: RRD graphs not updating in Server

Post by diddie »

Hi there,

I have the same problem: DomotiGaServer does not create graphs.
I am running the server on a pogoplug with archlinux. The client is on my desktop-PC with openSUSE. Both are on 0.1.204.

I can see the "rrdtool graph..." command only in the debug logs on the client, but there are no "graph" commands on the server! I can only see the "rrdtool update..." commands there.
If I copy the rrdtool graph command from the server log to the clients command line, the graphs are created and the server can download it like it's supposed to.
When I run the stand-alone-version of Domotiga on the pogoplug the graphs are created fine. So rrdtool is working fine.

Am I missing some settings for the server version? Is it a bug?

By the way, this is a great piece of software, Ron - thank you.

Best wishes,
Dietmar
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: RRD graphs not updating in Server

Post by RDNZL »

Dietmar, I will have a look at this issue tomorrow.
Want to have it fixed too... Thanks.
Regards, Ron.
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: RRD graphs not updating in Server

Post by RDNZL »

I have fixed this bug in revision 871.
I wasn't sending an xmlrpc msg from client(s) to the server to update the graphs... :roll:
Please test...
Regards, Ron.
diddie
Starting Member
Starting Member
Posts: 5
Joined: Fri Oct 07, 2011 8:56 pm

Re: RRD graphs not updating in Server

Post by diddie »

Hi Ron,

Wow, that was very fast. I hope I can check the new code tonight.
I will let you know the result.

Thanks,
Dietmar
diddie
Starting Member
Starting Member
Posts: 5
Joined: Fri Oct 07, 2011 8:56 pm

Re: RRD graphs not updating in Server

Post by diddie »

Hi Ron,

Great, it's working now! The server is creating graphs.
Some graphs are empty sometimes - I will have to have a closer look at this.

There is one problem left with the graphs. The client seems to start with disabled RRDTool all the time. Let me explain:
On the server RRDTool is running. The log says it has started and I see the "rrdtool update..." commands.
When I start the client the graphs are not working. I have to go to "Setup - Interfaces - RRDTool" and enable it. Even though is running already on the server.
After this the graphs work. But every time I start the DomotiGa client the check-box of RRDTool interface is disabled again.

What could be wrong? There is nothing in the logs.

Best wishes,
Dietmar
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: RRD graphs not updating in Server

Post by RDNZL »

I guess you haven't installed rrdtool on your client machine, and DomotiGa checks if it can find it upon startup if it doesn't it reports this, and disables rrdtool.
I have left out this check now when starting as client, since all rrdtool stuff is done on the server anyway. Please test.
Regards, Ron.
diddie
Starting Member
Starting Member
Posts: 5
Joined: Fri Oct 07, 2011 8:56 pm

Re: RRD graphs not updating in Server

Post by diddie »

Correct, there is no RRD on the client.
But in the new version it works now without RRD on the client. Great.
Thanks a lot for the fast help.

Best wishes,
Dietmar

next are EM1000 counters with CUL
and ZWave with Tricklestar as secondary controller
Post Reply

Return to “DomotiGa Forum”