RRD Tool no .png update
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, i can see a line command in LOG like "RRDTOOL graph ...." but i can't see no error and there's no update in graphs directory.
Also, please tell me what does this mean?
[RRDTool] Failed to download graph 'http://localhost/home/cmr/domotiga/rrd/graphs/tempext-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. Newbie doubts.
Do i need to edit domotiga.conf defaut sql user? User is Domouser pwd: kung-fu. Do i need to put my user in configuration? The database works fine and i think my problem is not related to SQL
I'm using Squeezeplug (server)
Thanx.
Carlos
Replies (8)
RE: RRD Tool no .png update
-
Added by raymonvdm 3 months ago
Same problem here however i don`t see the logline u are refering to and i`m not running client server mode
ls -ltr /home/domotiga/domotiga drwxr-xr-x 4 domotiga domotiga 4096 2012-02-22 13:40 rrd domotiga@domosmurf:~/domotiga/rrd$ ls -ltr totaal 804 -rw-rw-r-- 1 domotiga domotiga 25316 2011-12-15 23:09 domotigaserver.rrd -rw-rw-r-- 1 domotiga domotiga 25316 2011-12-15 23:24 harddrivedevsda.rrd -rw-rw-r-- 1 domotiga domotiga 49948 2011-12-15 23:29 outsidesensor.rrd -rw-rw-r-- 1 domotiga domotiga 25316 2011-12-15 23:29 hotwater.rrd -rw-rw-r-- 1 domotiga domotiga 25316 2011-12-15 23:39 powerusage.rrd drwxr-xr-x 3 domotiga domotiga 4096 2012-02-22 22:37 graphs -rw-rw-r-- 1 domotiga domotiga 25316 2012-02-24 01:44 39.rrd -rw-rw-r-- 1 domotiga domotiga 25316 2012-02-24 01:44 40.rrd -rw-rw-r-- 1 domotiga domotiga 25316 2012-02-24 01:44 43.rrd -rw-rw-r-- 1 domotiga domotiga 25316 2012-02-24 01:44 42.rrd domotiga@domosmurf:~/domotiga/rrd/graphs$ ls -ltr totaal 28 -rw-rw-r-- 1 domotiga domotiga 12311 2012-02-22 22:37 server-load-1h.png -rw-rw-r-- 1 domotiga domotiga 9982 2012-02-22 22:37 server-memory-1h.png
Im trying to get things going
domotiga@domosmurf:~/domotiga/rrd$ chmod 777 graphs/ -R
RE: RRD Tool no .png update
-
Added by rdnzl 3 months ago
If you click on climate page please copy the debug log output it generates here...
What you also can do is copy the whole line starting with/from rrdtool graph.... as it appears in the log window and paste it into a linux terminal window to be run outside of domotiga and see what it does...
RE: RRD Tool no .png update
-
Added by raymonvdm 3 months ago
I have enabled a device and added it to the climate group. After that i can click climate and see a graph with nan legends
But there is no rrrdtool / command in the debug logfile or in the graph screen so what am i missing ?
RE: RRD Tool no .png update
-
Added by rdnzl 3 months ago
Maybe you see an old image, clear the graphs dir.
nan means not enough data gathered yet, or data out of range.
Then enable rrdtool debug open climate tab and see what it says.
Post it.
It should say no graphs found for climate group or it should note some rrdtool commands.
I have to guess too much this way.
RE: RRD Tool no .png update
-
Added by raymonvdm 3 months ago
It seems like graphing is working after adding the device to the climate group. Why does a device must be part of the climate group for graphing to work. The device has already graphing enabled
RE: RRD Tool no .png update
-
Added by rdnzl 3 months ago
You must add a device to a group so DomotiGa knows on which page to show it.
Climate, Energy, etc...
Same for extended graphs.
Or did I overlook something? Or is something not logical?
I would be happy to change it if needed.
RE: RRD Tool no .png update
-
Added by cmrdomo 3 months ago
Ron,
Here's my log
2012/02/25 00:04:13 [RRDTool] Device with address 'TH1[58882]' named 'Outside sensor has graphing enabled for 'temp'.
2012/02/25 00:04:13 [RRDTool] Graphs: /home/domotiga/domotiga/rrd/graphs/11-temp
2012/02/25 00:04:13 [RRDTool] Device with address 'TH1[58882]' named 'Outside sensor has graphing enabled for 'humid'.
2012/02/25 00:04:13 [RRDTool] Graphs: /home/domotiga/domotiga/rrd/graphs/11-humid
2012/02/25 00:04:13 [RRDTool] Extended Graph with name 'Outside sensor-temp' is in group named 'Climate'.
2012/02/25 00:04:13 [RRDTool] Graphs: /home/domotiga/domotiga/rrd/graphs/outsidesensor-temp
2012/02/25 00:04:13 [RRDTool] Device with address 'TH1[58882]' named 'Outside sensor' has graphing enabled for temp.
2012/02/25 00:04:13 [RRDTool] rrdtool graph /home/domotiga/domotiga/rrd/graphs/11-temp-1h.png --lazy --start -1h -c SHADEA#FFFFFF -c SHADEB#FFFFFF -c BACK#FFFFFF -t 'Outside sensor Temp' -v '°C' DEF:temp=/home/domotiga/domotiga/rrd/11.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'
2012/02/25 00:04:13 [RRDTool] Device with address 'TH1[58882]' named 'Outside sensor' has graphing enabled for humid.
2012/02/25 00:04:13 [RRDTool] rrdtool graph /home/domotiga/domotiga/rrd/graphs/11-humid-1h.png --lazy --start -1h -c SHADEA#FFFFFF -c SHADEB#FFFFFF -c BACK#FFFFFF -t 'Outside sensor Humid' -v '%' DEF:humid=/home/domotiga/domotiga/rrd/11.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'
2012/02/25 00:04:14 [RRDTool] rrdtool graph /home/domotiga/domotiga/rrd/graphs/outsidesensor-temp-1h.png --lazy --start end-1h -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='Outside sensor' --vertical-label '' DEF:outsidesensor_temp=/home/domotiga/domotiga/rrd/outsidesensor.rrd:temp:AVERAGE COMMENT:'\s' COMMENT:' ' COMMENT:'\l' LINE1:outsidesensor_temp#00FF00:'Temperatura ' COMMENT:'\s' COMMENT:'\s' 2>&1 >/dev/null
2012/02/25 00:04:14 [RRDTool] Failed to download graph 'http://localhost/graphs/11-humid-1h.png'
2012/02/25 00:04:14 [RRDTool] Failed to download graph 'http://localhost/graphs//home/domotiga/domotiga/rrd/graphs/outsidesensor-temp-1h.png'
any clues?
Carlos
RE: RRD Tool no .png update
-
Added by cmrdomo 3 months ago
Update:
Today i realize something very strange.
My domotiga server is located at /home/cmr/domotiga on a ARM machine
I ran my client on virtualbox located at /home/domotiga/domotiga on Windows
RRD files are updated on server but If you look at the image file attached RRDTOOL is trying to create graphs on the client's directory.
That's why i can't see no graphs on climate tab.
Ron? What should i do?
Carlos!!!!
Screenshot.png (127.3 kB)
(1-8/8)