Craphing from existing MRTG rrd files...

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
jhottle
Posts: 9
Joined: Wed Mar 02, 2005 10:56 am

Craphing from existing MRTG rrd files...

Post by jhottle »

Can anyone explain how to setup Cacti to pull the data to be graphed from and MRTG created rrd file.

I just need to know what to do in Cacti to pull and create these graphs.

I have looked over and over these forums and no seems to be able to post exactly what the have done to make this work.

I do not have any devises created, I do know how to create the data source linking to my current rrd files, but from this point on I am lost.

Why is there no documentation for this?

Thanks,

J. Hottle
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You need to create a data source for the existing RRA. You need to create a data template which uses the Data Source Item names already in the RRA file. You'll need to create a graph template.
jhottle
Posts: 9
Joined: Wed Mar 02, 2005 10:56 am

Post by jhottle »

Will I still need to add the device I am monitoring, even though Cacti is really not polling the interfaces?

Also, do you mean *.rrd files?

JEsse
jhottle
Posts: 9
Joined: Wed Mar 02, 2005 10:56 am

Post by jhottle »

OK.. I added everything suggested, now I get this error when I have debugging turned on for this created graph.

ERROR: can't make a graph without contents

Any ideas?

JEsse
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Turn on graph debugging and post the contents. Can it find the RRD file? Does your graph template have the datasource names which are being used in the RRD file?
jhottle
Posts: 9
Joined: Wed Mar 02, 2005 10:56 am

Post by jhottle »

The debugging error is pasted above this post.

I do not know what datasource names the rrd file is usinging. How can i find this out?

I am using mrtg, and rrdtool to create the data files. They are running and being uopdated, but I can't open the rdd file, or is this in the mrtg.cfg file?

JEsse
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

jhottle wrote:The debugging error is pasted above this post.
I don't see it
jhottle wrote:I do not know what datasource names the rrd file is usinging. How can i find this out?
rrdtool dump rrdfilename.rrd > file.xml
jhottle
Posts: 9
Joined: Wed Mar 02, 2005 10:56 am

Post by jhottle »

Here is the debugging error: ERROR: can't make a graph without contents

Here is the post for the rrd dump file: <!-- Round Robin Database Dump
-->
- <rrd>
<version>0001</version>
<step>300</step>
- <!-- Seconds
-->
<lastupdate>1109876092</lastupdate>
- <!-- 2005-03-03 13:54:52 US Eastern Standard Time
-->
- <ds>
<name>ds0</name>
<type>COUNTER</type>
<minimal_heartbeat>600</minimal_heartbeat>
<min>0.0000000000e+000</min>
<max>1.2500000000e+007</max>
- <!-- PDP Status
-->
<last_ds>1551071982</last_ds>
<value>5.5058851320e+007</value>
<unknown_sec>0</unknown_sec>
</ds>
- <ds>
<name>ds1</name>
<type>COUNTER</type>
<minimal_heartbeat>600</minimal_heartbeat>
<min>0.0000000000e+000</min>
<max>1.2500000000e+007</max>
- <!-- PDP Status
-->
<last_ds>3167055748</last_ds>
<value>8.3183431867e+006</value>
<unknown_sec>0</unknown_sec>
</ds>


Jesse
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Your data source names are: ds0 and ds1
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests