| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| routers2 and external RRD's http://www.steveshipway.org/forum/viewtopic.php?f=2&t=8131 |
Page 1 of 1 |
| Author: | paped1 [ Fri Dec 13, 2013 12:57 am ] |
| Post subject: | routers2 and external RRD's |
Hi, I am wondering if the following is possible and how to do it if it is, as I have been going round in circles within Google trying to find the answer? Firstly my set-up - I have MRTG/RRD/Routers2 graphing my router/server traffic, however I also have a separate RRD set-up for logging my power usage of an init.d script to log to a none MRTG RRD, then cron scripts to graph the "power" RRD to PNG graphs at various intervals depending on the graph scale of between 1 and 60 minutes. What I am trying to do is to intergrate this existing none MRTG "Power" RRD so the graphs are created on the fly within routers2, rather than the CPU intensive way I do it now. As its RRD and with how I understand routers2 (newbie though) I think that I need to set-up some kind of virtual device .cfg file, as per some of the posts around user defined graphs mention, but I cannot find what I need to add in to the file, such as targets etc.? As rather than collecting the stats I just need to point routers2 to the existing RRD and set-up the "vitual device" and it's attributes such as 15, 60 minute, 1 day, 1 week, 1 month, 1 year, 5 year and 10 year graphs???? As above I suppose the first question is it even possible, as currently I have not found anything that say it cannot be done but inversely I have not found anything that says it can be done either? Any help greatly appreciated.... |
|
| Author: | stevesh [ Tue Jan 28, 2014 11:02 am ] |
| Post subject: | Re: routers2 and external RRD's |
The way the Routers2 is currently written, it assumes that the RRD files were generated by MRTG. This means that they must have two DS called 'ds0' and 'ds1', and eight RRAs, corresponding to daily/weekly/monthly/yearly AVG and MAX. If any of these assumptions are not true, then it will result in unexpected graphs or, more likely, errors. Provided the RRD meets these criteria, you can create a fake MRTG cfg file to be used by Routers2. We do this for several things here. The file must contain at least the lines Workdir: /foo/bar Target[baz]: dummy Title:[baz]: Title for this graph if the RRD file is in /foo/bar/baz.rrd. Other lines can be used to customise the labels and display options. However, if the RRD file does not meet the criteria, Routers.cgi version 2.x cannot display it. There are rough plans for v3.0 to allow display of generic RRD files, but this is still a very long way off. |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|