What determines the name of the rrd file

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
ajeffco
Posts: 10
Joined: Wed Jan 31, 2007 1:51 am

What determines the name of the rrd file

Post by ajeffco »

Hello All,

I've searched for this on the forum, but haven't seen any references to it. I'm hoping it's not something so simple that I should have seen it from another source, say, the documentation :)

I'm trying to figure out what determines the name of the rrd files that are created by cacti. I'm using the brocade templates found here, and they are working well. However, using the weathermap plugin, which is also working well, when I select the TARGET for the links, finding the name of the link isn't a straightforward thing. I have to go into the graph properties for that device/port graph to get the filename.

Rather than naming it something like "$HOSTNAME-port#", it's "$HOSTNAME_swfcporttxwords_#.rrd". swfcporttxwords is one the graph item inputs for this particular graph template. If you remove/add devices, even if you add the same device/port, it's a new filename, even if the old one has been deleted.

Maybe this is by design... I was just trying to figure out a way so that it's a "normalized" rrd filename based on the host and port. To me, it would make more sense to make the RRD filename be "$HOSTNAME_$ifindex.rrd"

Hope that makes sense (tired) :)

TIA,

Al
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: What determines the name of the rrd file

Post by Howie »

ajeffco wrote:I'm trying to figure out what determines the name of the rrd files that are created by cacti. I'm using the brocade templates found here, and they are working well. However, using the weathermap plugin, which is also working well, when I select the TARGET for the links, finding the name of the link isn't a straightforward thing. I have to go into the graph properties for that device/port graph to get the filename.
I know it doesn't answer your question, but the Weathermap editor does sidestep this problem. If you tell it where your cacti installation lives, it is able to give you a pick-list of data sources, which it then uses to fill in the TARGET, INFOURL and OVERLIBGRAPH lines for a link for you. The sorting is sometimes funny (got to look into that), but since the picker is a web page you can always hit Ctrl-F to search it. The editor should work without mangling your existing hand-edited map, too. Well, aside from any comments you added.

I think the actual answer is something like hostname-firstdsname-local_data_id, but there are people who know better than me :-)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Moved to Weathermap Forum
Reinhard
dmann
Posts: 1
Joined: Tue Mar 06, 2007 12:24 pm

Where is the weathermap forum?

Post by dmann »

I cant find it at network-weathermap.com - can someone point me to the right location? I have this same question.

Thanks
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Where is the weathermap forum?

Post by Howie »

dmann wrote:I cant find it at network-weathermap.com - can someone point me to the right location? I have this same question.

Thanks

It's not really a weathermap question. Cacti decides what the names of the rrd files are, not weathermap.

You can find the filenames assigned from the Data Sources section of Cacti.

If you are using Weathermap, then you can use the editor to assign TARGETs, which lets you pick the data source from a list, which it pulls from Cacti's database. To get that working, you need to edit your editor-config.php to have the correct path to your cacti installation. That way, you don't ever need to know what the filename is :-)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests