Inbound/Outbound Data Source the same after changing templat

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

Moderators: Developers, Moderators

tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Inbound/Outbound Data Source the same after changing templat

Post by tomate »

Hello guys,

I found something weird : When I change a graph template (from "Traffic bits/sec, total bandwidth" to "Traffic bits/sec, 95th percentile"), Inbound Data Source and Outbound Data Source are the same and are traffic_in

I have to manualy change Outbound Data Source to traffic_out for every graph
that would'nt be a pb except I have hundreds of graphes :D

Maybe can I use a command line in mysql to change that ?
Or anything else ???

thanx ;)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

As a start: see table graph_templates_item, the column is task_item_id. But IMHO, the update sql would be a bit tricky (if any)
Reinhard
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Post by tomate »

lvm wrote:As a start: see table graph_templates_item, the column is task_item_id. But IMHO, the update sql would be a bit tricky (if any)
Reinhard
what can i do with this column ?

the problem is the same when I make changes in a bulk or one by one :/
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Thze task item id refers to the data source being graphed. If you can find out, what data source should be presented, you may update this in the table. But finding out isn't that easy, as I said ...
Reinhard
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Post by tomate »

Yes i will check this out
But i don't think it is the solution.
I think there is something happening when I use the function that changes the graph type, but i can't figure out why :-?
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Post by tomate »

here what's happening when i change the graph type :


Here the graph I want to change (in graph managment) :

Image




Here when I have modified the type (as you can see, something in the graph has to be added) :

Image




and the result is "outbound data source" = "inbound data source" :

Image
Attachments
bagnolet2 - before.JPG
bagnolet2 - before.JPG (110.88 KiB) Viewed 9125 times
bagnolet2 - changing.JPG
bagnolet2 - changing.JPG (89.24 KiB) Viewed 9125 times
bagnolet2 - after.JPG
bagnolet2 - after.JPG (104.99 KiB) Viewed 9126 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Will ask a dev. I don't know that much about this procedure
Reinhard
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Post by tomate »

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

Post by raX »

I am currently aware of this behavior. The problem here is that the 95th percentile and the regular bit/sec graph templates have a different number of items so when you change from one to the other the selected data source items do not align correctly. Keep in mind that the data source item dropdowns are not templated, so Cacti does not change the values of these fields when a template changes.

Having a "change template" feature is nice, but it is really only useful for changing between graph templates that are more or less identical. Anything more than that and it is almost worth creating a new graph from scratch and hooking up the existing data sources to it.

Perhaps there is a better way to handle this procedure that I am overlooking. I am always open to suggestions on how we could better handle this in 0.9.

-Ian
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Post by tomate »

ok thx ;)

I think indeed the best way is to create new graphs from scratch :)
thomasw
Posts: 33
Joined: Thu Nov 10, 2005 6:11 am

any news on this? outbound datasource bound to inbound

Post by thomasw »

Hello All,

today I found out that a lot of my graphs lost their outbound datasource item, which is connected to the inbound one. All graphs showing up wrong data on that. It seems that this happens during update from 0.8.6.h to 0.8.6j.

Has anyone an idea on how to fix this for thousands of graphs?
Any input is highly welcome.

thanks in advance,

tom
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Any chance on updating to 0.8.7a?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
thomasw
Posts: 33
Joined: Thu Nov 10, 2005 6:11 am

update to 0.8.7a does not solve the issue

Post by thomasw »

Hello,

sorry for the late reply.

I tried the update from 0.8.6.j to 0.8.7a without success on the given issue. Any ideas on howto recreate the association from inbound graph to inbound ds and outbound graph to outbound ds via database?

Any help is highly welcome!

thanks in advance,

tom

ps: i have done the upgrade on a different machine (copied db and rra`s). the prod machine still has the issue.
amentges
Posts: 12
Joined: Tue Mar 08, 2005 10:51 am

Post by amentges »

just to throw my two cents in, I am having the exact same issues, and I have also updated to 0.8.7a without success on the issue
mattmann72
Posts: 5
Joined: Mon Feb 19, 2007 8:44 pm

Post by mattmann72 »

I have the same problem.

I cannot find where in the database to reconnect the Graph to the data source. Can someone please explain how this all glues together?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests