Graph Management - No Data Sources to Choose From
Moderators: Developers, Moderators
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
On my test system (see versions in my signature), I have this problem with fresh installation of 0.8.6h + patches and 0.8.6i-beta. After the first login, without any modification to the templates, graph miss the data sources.
Do you me to start over a new installation and upload the database ?
Do you me to start over a new installation and upload the database ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
i found in script rrd.php, line 535 is a view which returns null in a few neccesary fields
/* lets make that sql query... */
$graph_items = db_fetch_assoc("select
graph_templates_item.id as graph_templates_item_id,
graph_templates_item.cdef_id,
graph_templates_item.text_format,
graph_templates_item.value,
graph_templates_item.hard_return,
graph_templates_item.consolidation_function_id,
graph_templates_item.graph_type_id,
graph_templates_gprint.gprint_text,
colors.hex,
data_template_rrd.id as data_template_rrd_id,
data_template_rrd.local_data_id,
data_template_rrd.rrd_minimum,
data_template_rrd.rrd_maximum,
data_template_rrd.data_source_name,
data_template_rrd.local_data_template_rrd_id
from graph_templates_item
left join data_template_rrd on (graph_templates_item.task_item_id=data_template_rrd.id)
left join colors on (graph_templates_item.color_id=colors.id)
left join graph_templates_gprint on (graph_templates_item.gprint_id=graph_templates_gprint.id)
where graph_templates_item.local_graph_id=$local_graph_id
order by graph_templates_item.sequence");
http://www.ernetfree.net/mapa_site/mapa.jpg
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
I will be looking at this issue tonight.
[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]
[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]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Reset, you issue is different. Tony, can you please split this topic. Frag, we need dumps prior to (when it was Ok) and after you upgraded. In addition, intclude the id's of the problematic Graph instances...
TheWitness
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?
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?
I think you were talking to me here. Frag is approximately equal to Fred.TheWitness wrote:Frag, we need dumps prior to (when it was Ok) and after you upgraded. In addition, intclude the id's of the problematic Graph instances...
Problem is, I don't know when the database was okay. I don't generally make changes to existing graphs. Only changes I need to make are usually to add devices/graphs. So, I can't get you a dump from when it was okay.
As far as which instances are problematic, I have yet to find one that isn't problematic. None of the graphs have data sources, whether they're old or new. Again, the graphs work fine until I try to change them.
This checkbox is cleared for some templates, and checked for others.TheWitness wrote:Did any of you clear the checkbox in the Graph Template to automatically name the Graph in an effort to change the names of your graphs?
Both. Appears to be affecting every single graph.TheWitness wrote:Are these problems associated with Data Query related Graph Templates or simple SNMP/Script type Graph Templates.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Well.....
First, Fred, you are running 0.8.6g, you should consider upgrading, but not until you run a check and repair on your database.
All of you experinceing this problem need to run a check and repair. Check out the mysqlcheck utility.
Also, what version of mysql and php are you using. Also, what Distro are you running? Did you install Cacti from Source (tar.gz), RPM from cacti.net, or the distros package system?
I need to know the above information, because, I can't replicate this issue on my developement environment.
First, Fred, you are running 0.8.6g, you should consider upgrading, but not until you run a check and repair on your database.
All of you experinceing this problem need to run a check and repair. Check out the mysqlcheck utility.
Also, what version of mysql and php are you using. Also, what Distro are you running? Did you install Cacti from Source (tar.gz), RPM from cacti.net, or the distros package system?
I need to know the above information, because, I can't replicate this issue on my developement environment.
[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]
[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]
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
You may have a look at the second to last link of my signature. You'll find there a walkthrough on how to generate own templates and stuff. IMHO, this procedure should work for you. If not, please advise, which step failsreset wrote:i tried to make tamplate graphs few times, steps:
1) data input methods
2) data templates
3) data source
5) host template
6) device
7) graph template
graph management
without templates graphs works fine, but i want to use template, because i have many data sources and bla bla
Reinhard
I'm running php 4.4.2, mysql 4.1.20, on a Gentoo machine. Installed cacti from the Gentoo ebuild.Also, what version of mysql and php are you using. Also, what Distro are you running? Did you install Cacti from Source (tar.gz), RPM from cacti.net, or the distros package system?
Ran a check and repair on the database. Everything registered 'OK'. Went ahead and completed the upgrade to 0.8.6h. Problem persists.rony wrote: First, Fred, you are running 0.8.6g, you should consider upgrading, but not until you run a check and repair on your database.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Gentoo... Um...
What version of ADODB is installed?
What version of ADODB is installed?
[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]
[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]
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi Tony
I'm using Gentoo Linux too...
This morning I tried to reproduice this "bug", by reinstalling from scratch Cacti 0.8.6g patched, 0.8.6h patched and 0.8.6i beta, but I did not have the problem anymore...
AFAIK, ADOdb is not installed by Gentoo, so Cacti is using the version in lib/adodb
I'm using Gentoo Linux too...
This morning I tried to reproduice this "bug", by reinstalling from scratch Cacti 0.8.6g patched, 0.8.6h patched and 0.8.6i beta, but I did not have the problem anymore...
AFAIK, ADOdb is not installed by Gentoo, so Cacti is using the version in lib/adodb
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Who is online
Users browsing this forum: No registered users and 2 guests