Using Cacti to graph .rrd files it does not maintain?
Moderators: Developers, Moderators
Using Cacti to graph .rrd files it does not maintain?
I have a few shell scripts on remote servers in which cacti does not run on.
These scripts create their own .rrd files as well as graph the, but what I would like to do is have cacti graph this data.
I can make the .rrd file available to catci via nfs, so cacti will be able to read the .rrd file. But cacti is not local on the machine that the .rrd is being created on so cacti cannot do any of the data collecting and insterting into the .rrd file.
What I am trying to do, is get cacti to *read* the data from the .rrd file
and graph it, but nothing else. I do not want cacti to ever write to the .rrd file.
Is this possible? All other posts I have seen where someone was trying to find out how to do this, including one of my own was ignored, so I am asking again.
These scripts create their own .rrd files as well as graph the, but what I would like to do is have cacti graph this data.
I can make the .rrd file available to catci via nfs, so cacti will be able to read the .rrd file. But cacti is not local on the machine that the .rrd is being created on so cacti cannot do any of the data collecting and insterting into the .rrd file.
What I am trying to do, is get cacti to *read* the data from the .rrd file
and graph it, but nothing else. I do not want cacti to ever write to the .rrd file.
Is this possible? All other posts I have seen where someone was trying to find out how to do this, including one of my own was ignored, so I am asking again.
I don't see why it wouldn't. The rrd would not be updated unless some how it made it into the poller cache and cmd.php or cactid got hold of it.
Your would have to create a datasource and define all the properties including the path of your rra there, then you should be able to create a graph for it.
Untried by me, but i don't see any reason why it wouldn't work.
Your would have to create a datasource and define all the properties including the path of your rra there, then you should be able to create a graph for it.
Untried by me, but i don't see any reason why it wouldn't work.
Nevermind =)
I actualy figured it out about 30 minutes after posting that.
How did you do this?
I have the same setup. I have a main server that is collecting all the data and putting them in rdd files. I am loading Cacti on a diff server and wanted to use it to graph the current rdd files.
How did you do this?
I have the same setup. I have a main server that is collecting all the data and putting them in rdd files. I am loading Cacti on a diff server and wanted to use it to graph the current rdd files.
It would be nice to develop an extension that is based on this concept and displays all rrd files in a directory which are not graphed yet. This way it is easy to add graphing of rrd files to cacti.
Furthermore it would be great to use a naming convention for the rrd files. In that way the graphing template(s) could be automatically mapped next to the rrd files.
Like: host123-diskfree-diskspace.rrd would automatically display checkboxes for graphing the rrd with the graphing templates diskfree and diskspace.
Furthermore it would be great to use a naming convention for the rrd files. In that way the graphing template(s) could be automatically mapped next to the rrd files.
Like: host123-diskfree-diskspace.rrd would automatically display checkboxes for graphing the rrd with the graphing templates diskfree and diskspace.
hmmm, all well, I can graph existing rrds in Cacti, by crerating this inactive source, but how do I create a template?
I have a directory-structure like
.../rrd/<hostname>/<various>.rrd for about 50 hosts and would like to create templates for them.
Goal would be to have a host template that then includes all graphs for this type of machine (it's actually Squid boxes graphed by mrtg, yes it already creates rrd files)
Any hints appreciated
Sven
I have a directory-structure like
.../rrd/<hostname>/<various>.rrd for about 50 hosts and would like to create templates for them.
Goal would be to have a host template that then includes all graphs for this type of machine (it's actually Squid boxes graphed by mrtg, yes it already creates rrd files)
Any hints appreciated
Sven
Has any one done this yet?
Has anyone figured out how to create templates for already existing rrds where you can pass the hostname like Sven mentioned?svenXY wrote:hmmm, all well, I can graph existing rrds in Cacti, by crerating this inactive source, but how do I create a template?
I have a directory-structure like
.../rrd/<hostname>/<various>.rrd for about 50 hosts and would like to create templates for them.
Goal would be to have a host template that then includes all graphs for this type of machine (it's actually Squid boxes graphed by mrtg, yes it already creates rrd files)
Any hints appreciated
Sven
Who is online
Users browsing this forum: No registered users and 3 guests