Page 1 of 1

RRD file generation

Posted: Tue Nov 23, 2010 11:50 am
by wwolkers
I just ran into a small 'glitch'.
I am running DomotigaServer.

I have setup Domotiga with the plugwise extension, which is working OK so far. I started with just one plug added to Domotiga, just for testing.

Later, I added more plugs to the configuration using Domotiga, since I can't do that yet from the web interface.
Problem is that at that moment, the Domotiga client tries to make the .rrd files, which it can't (no permissions to the rrd directory).
Shouldn't those be generated by the DomotigaServer process??

Also, is it a plan to add some XMLRPC functions, so configuration changes can be done that way, with some form of authentication, for whomever wants to use it?

Re: RRD file generation

Posted: Wed Nov 24, 2010 11:15 am
by wwolkers
What I also noticed is that if I stop DomotigaServer and start it again, it will create the .rrd files.
So I'm buessing that since the devices got added via Domotiga, DomotigaServer doesn't notice the changes.
Which is weird, cause the webinterface is picking them up without a restart.

Re: RRD file generation

Posted: Wed Nov 24, 2010 2:34 pm
by RDNZL
DomotiGaServer sees the new devices too, that's not the problem.
But it needs to call RRDTool.CreateRRDs(), DomotiGaServer does this on startup and DomotiGa GUI does this also when a device is added.
I will add XMLRPC methods to do this. (I think...)

Re: RRD file generation

Posted: Thu Nov 25, 2010 12:34 am
by wwolkers
If you don't have the time, I'll have a look at implementing the XMLRPC functions for it. Should be a good start for me with Gambas :) Just let me know.

Re: RRD file generation

Posted: Thu Nov 25, 2010 3:29 pm
by RDNZL
I have added this to revision 494, it will now also only create rrd for devices newly added or changed, instead of checking all.
There will be more of these type of client/server issues for sure, for example generating graphs..
But if you can describe them a bit in detail we can fix those too..