Matching rrd files to their interfaces

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

Moderators: Developers, Moderators

Post Reply
madaeva
Posts: 2
Joined: Wed Dec 14, 2005 1:00 pm

Matching rrd files to their interfaces

Post by madaeva »

hi, currently the rrd files will have a device name and then a identifying number.

Is this the SNMP index of the interface on the device ? I would like to write some script to identify what interface any specific rrd file in refering to.

long term plan is to generate png's of certain interfaces (customer interface) from rrd file and generate customer specific reporting.

hope this makes sense. any advise appreicated.

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

Post by BSOD2600 »

No, the number that cacti automatically assigns to the rrd file is random (well not really... it's the next one in line somewhere in the mysql database... don't really understand the exact process). Just click on the interface in Data Sources to see what rrd file goes to what interface.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

The number is accually the local_data_id.
[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]
madaeva
Posts: 2
Joined: Wed Dec 14, 2005 1:00 pm

Post by madaeva »

ahh ok. great thanks. my next question is, will this id always stay the same ?

(e.g after a interface list refresh in cacti - say maybe i add more ports to a switch)


from looking at data sources method, i can manually build a table that matches rrd file to customer interface. then use this relation as hardcoded
into my script.

e.g router.id.rrd will always be for customer x.

appreicate the responses so far. much clearer now.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

FYI, search, I wrote a query for someone in the past that gave them Graph ID's and RRD files for graphs you where looking for.
[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]
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests