Compare graph for for same interface

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

Moderators: Moderators, Developers

Post Reply
Posts: 1
Joined: Tue Oct 08, 2019 7:04 pm

Compare graph for for same interface

#1 Post by Lashinkof » Tue Oct 08, 2019 7:11 pm

I need to creat graph to compare the traffic for same interface the 1st line will be traffic for current week and the 2nd line for last week

Cacti Guru User
Posts: 3131
Joined: Sun Aug 27, 2017 12:05 am

Re: Compare graph for for same interface

#2 Post by netniV » Wed Oct 09, 2019 2:30 pm

I don't believe that is currently possible ... but I'll ask the rest of the team...

A way around doing this would be to use a script server script that populated a database, then took the date and time of query, plus the RRD file, and used RRDTool directy to pull out the data value from a week ago. Note, it wouldn't be a totally accurate value since that would be averaged depending on your various step values.

Another way, would be to have a database which held more than a weeks worth of values, pruning off the older ones so you can query against the last exact value at a timestamp equal to or just before a week ago. Again, that's not exactly a hard thing to put together but does mean duplication of data etc.

Post Reply