Data Sources missing after MySQL upgrade
Moderators: Developers, Moderators
-
- Posts: 24
- Joined: Sat May 07, 2005 10:03 pm
- Location: Miami Beach, FL
- Contact:
Data Sources missing after MySQL upgrade
All of our .rrd files are in the rra directory and when you click on "Data Sources" under Management of the Console, you get "Showing Rows 1 to 30 of 592 [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20...]" and then "No Data Sources." So it knows there are data sources, the rrd files exist but I can't see any graphs. This all started after upgrading from MySQL 3.23 to 5.0.27. Any ideas?
AccelerateBiz Hosting
http://www.acceleratebiz.com
http://www.acceleratebiz.com
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please refer to http://forums.cacti.net/viewtopic.php?t=19316 and verify, that your problem is equal to the one shown in the screenshot. Then, pleae follow this thread.
Reinhard
Reinhard
-
- Posts: 24
- Joined: Sat May 07, 2005 10:03 pm
- Location: Miami Beach, FL
- Contact:
When I click on Console -> Templates -> Data Templates, I get a full list of templates, so I'm not sure my problem is the same as that guy's. I ran that query you posted in the other thread and it seems to just list the same data templates in the Data Templates webpage.
AccelerateBiz Hosting
http://www.acceleratebiz.com
http://www.acceleratebiz.com
-
- Posts: 24
- Joined: Sat May 07, 2005 10:03 pm
- Location: Miami Beach, FL
- Contact:
-
- Posts: 24
- Joined: Sat May 07, 2005 10:03 pm
- Location: Miami Beach, FL
- Contact:
some more info. The .rrd files seem to be updated, everything looks normal. The issue is I just can't see the graphs! For billing purposes this is very critical for us. Under Graph Management or Data Sources I see "Showing Rows 1 to 30 of 591" but then no Graphs or Data Sources found. Strange.
However, when I go to user management -> admin. And then I go to Graph Permissions (default is ALLOW for everything with no DENYs). There I see the names of all 591 graphs. So the data seems to be collected, devices configured properly and even the graph names exist. Why can't I view the graphs?
However, when I go to user management -> admin. And then I go to Graph Permissions (default is ALLOW for everything with no DENYs). There I see the names of all 591 graphs. So the data seems to be collected, devices configured properly and even the graph names exist. Why can't I view the graphs?
AccelerateBiz Hosting
http://www.acceleratebiz.com
http://www.acceleratebiz.com
A possible solution
A possible solution is to enclose in brackets any group of more than one tables in all "from" SQL stataments found in the source files.
For example:
will turn into
This issue was fixed in newer versions.
Regards,
Alexandru Ciobanu
For example:
Code: Select all
$graphs = db_fetch_assoc("select
graph_templates_graph.local_graph_id,
graph_templates_graph.title_cache,
graph_templates_graph.height,
graph_templates_graph.width
from graph_templates_graph,graph_local
left join host on host.id=graph_local.host_id
...
Code: Select all
$graphs = db_fetch_assoc("select
graph_templates_graph.local_graph_id,
graph_templates_graph.title_cache,
graph_templates_graph.height,
graph_templates_graph.width
from (graph_templates_graph,graph_local) <- notice the brackets here
left join host on host.id=graph_local.host_id
...
This issue was fixed in newer versions.
Regards,
Alexandru Ciobanu
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Hmm, have you checked the sql_mode of the server. Review my.cnf and make sure sql_mode is not set. Restart MySQL and you should be all set.
TheWitness
(This is likely where Gandolf sent you anyway)
TheWitness
(This is likely where Gandolf sent you anyway)
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?
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?
-
- Posts: 24
- Joined: Sat May 07, 2005 10:03 pm
- Location: Miami Beach, FL
- Contact:
Who is online
Users browsing this forum: No registered users and 2 guests