rrd-file-name

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

Moderators: Developers, Moderators

Post Reply
GamBit
Posts: 21
Joined: Thu Feb 20, 2003 9:46 am

rrd-file-name

Post by GamBit »

If i make a new graph the filename of the rrd-file like corerouter97_traffic_in_2774.rrd

Is it possible to define the default rrd-file-name-format like [routername]_[interfacename]_[graphtemplatename].rrd?

thanx

gambit
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Not without editing the source to change the behavior. See get_data_source_path() inside of lib/functions.php for more information.

-Ian
User avatar
bleearg
Cacti User
Posts: 55
Joined: Wed Apr 27, 2005 9:37 am

Post by bleearg »

Does this still apply? I would like the ability to have Cacti grab the ifName (1.3.6.1.2.1.31.1.1.1.1) and use it as the .rrd filename instead of the interface_id. It'd be nice to mimic the "MRTG-style" naming conventions for easier migration from MRTG.

Cacti now:
rra/router_traffic_in_785.rrd

Would like to be:
rra/router_fa0_2.rrd

Reasoning: we have thousands of customers who look at their MRTG graphs and getting them all to update their links will just not be feasible.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

As I stated before, this is certainly possible through code. To make this work in all situations, the filename would have to be based on the data query index (ie. the ifName if your case). There is probably not much of a chance that this will be included in a 0.8.6x release of Cacti. However if you open up a Mantis bug and reference this thread, I will certainly consider it for 0.9.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests