How to choose a name for an RRD file

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

Moderators: Developers, Moderators

Post Reply
tpe
Posts: 12
Joined: Tue Jul 26, 2005 1:08 pm

How to choose a name for an RRD file

Post by tpe »

I'm fairly new to Cacti, but I've created a bunch of templates and such. It's been a painless experience so far.

I am having a problem with hte names of my rrd files. I realize in the web UI it doesn't much matter what the RRD files are named, but I like to keep a tight ship.

Here's my specific problem, I have two RRD files named:
websrv1_lower_38.rrd
websrv1_avg_39.rrd

I have data source in both of these called
average, upper, lower

But I'd rather the RRD files were named
websrv1_currentwebhits_virt1_38.rrd
websrv1_currentwebhits_virt2_39.rrd

Where can I define this within the templates? I'm stumped.

Thanks,
-Terry
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

No where that I know of.... It uses the first DS in the data source as the last part of the name. Also, the ID of the Data Source and the name are in there. I don't remember much else, because I don't play with that code that much.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
tpe
Posts: 12
Joined: Tue Jul 26, 2005 1:08 pm

Post by tpe »

Thanks. It's nice to know I'm not missing an easy config option.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Sort of a pain in the butt, but just after you add a new data source, get properties on the new data source. Then change the rrd filename cacti is going to create to something more logical.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If you guys want a different DS naming scheme, then somebody needs to place a bug report in Mantis pointing to this post.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests