Using Cacti to graph .rrd files it does not maintain?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
hednod
Posts: 17
Joined: Tue Jan 20, 2004 5:22 pm
Contact:

Using Cacti to graph .rrd files it does not maintain?

Post by hednod »

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.
:-?
Guest

Post by Guest »

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.
hednod
Posts: 17
Joined: Tue Jan 20, 2004 5:22 pm
Contact:

Nevermind =)

Post by hednod »

I actualy figured it out about 30 minutes after posting that.
jwhitepnv

How did you do this?

Post by jwhitepnv »

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.
jwhitepnv

How did you do this?

Post by jwhitepnv »

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.
jwhitepnv

how did you do it

Post by jwhitepnv »

I guess my question is how did you figure it out?
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

create a non active data source that points to the rrd file u want to use.
janno
Posts: 4
Joined: Fri Mar 26, 2004 3:45 pm

Post by janno »

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.
andrew2
Cacti User
Posts: 64
Joined: Mon Jul 26, 2004 2:50 pm
Location: Cincinnati, OH
Contact:

Post by andrew2 »

Has anyone tried doing this with rrd files from Smokeping?
svenXY

Post by svenXY »

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
Bigel0w
Posts: 10
Joined: Thu May 12, 2005 1:07 pm
Location: San Diego, CA
Contact:

Has any one done this yet?

Post by Bigel0w »

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
Has anyone figured out how to create templates for already existing rrds where you can pass the hostname like Sven mentioned?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest