Reuse Interfaces

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

Moderators: Developers, Moderators

Post Reply
coolcliff
Posts: 17
Joined: Wed Dec 20, 2017 3:51 am

Reuse Interfaces

Post by coolcliff »

Hi

How can i reuse vlans or interfaces on my router that are allocated to new customers while still maintaining the graph data for the older customers for reference purposes

Regards

Clifford Dsouza
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Reuse Interfaces

Post by netniV »

Assuming you are on Cacti 1.1.28 or above, I think you only need to create a new graph. Each graph has it's own datasource, just don't delete the old one. However, I think what will happen at that point is that any changes would be reflected to the new graph.

To get around that, try editing the graph (click unlock first) and then fix the Graph title (remove the dynamic fields) and set any fields to "None". However, I'm not sure if setting it to none will actually blank the data, so I will give it a test and come back to you.

Failing that, raise it as a feature request on the Cacti Issues section.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Reuse Interfaces

Post by netniV »

Thinking on this further. Graphs get their titles from the template. Therefore, you will struggle to separate an interface in the way that you want. Cacti is design more as a continuous monitoring platform than a customer profiling one. If you wish to retain the old data, copy out the RRD file for that device which will give you a snapshot in time. If you move the file out of the way, it will reset the graph as if you just started polling the devices.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
coolcliff
Posts: 17
Joined: Wed Dec 20, 2017 3:51 am

Re: Reuse Interfaces

Post by coolcliff »

Hi

I get the idea that that cacti is a continuous monitoring platform. it however at the end of the day its meant to server serve our customers. and there is always the issue that new customers are provisioned or processioned as our day to day activity. and there has been some cases when they have demanded graphs for settling disputes. wish there was some way to save the graphs for future reference.

meanwhile id go with copying the old rrd file suggestion, in this case i would need to keep another cacti system-> create the device-> create the graph-> and and replace the newly created rrd file with the old rrd file, right?

Thanks anyways for taking out the time to think about my delima

Regards

Clifford Dsouza
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Reuse Interfaces

Post by netniV »

Yeah, I think that would be what I would suggest. Though I haven't tried it :)

Part of me is wondering if it will work as the Graph/Datasource/Device ID's would not be the same.

However, when I did a command line test of fetching data, it doesn't seem to use any of those so it should!

Code: Select all

rrdtool fetch rra/localhost_usedreal_8.rrd AVERAGE -r $RRDRES -e $(($RRA_TIME/$RRDRES*$RRDRES)) -s e-1h | more
Where RRDRES was set to 5 and $RRA_TIME was just the result of date +%s
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests