Hi,
Is there any documentation with how the database all relates to each other?
I need to save select historic graphs in our company intranet, I want to be able to an external script that collects the data based on the item_id ie
select item_id from user_auth_perms where user_id = N
However my question is how I can get the item_id to relate to the graph_id so I can get both title and filename, I am sure I must be missing something very obvious, but any help would be appreciated.
Many Thanks
Database Schema
Moderators: Developers, Moderators
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Search is your friend...
I know I have responded to many posts about the database schema.
http://www.cacti.net/downloads/docs/sql ... schema.pdf
I know I have responded to many posts about the database schema.
http://www.cacti.net/downloads/docs/sql ... schema.pdf
[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]
Database Schema
Thank for your response, however I am afraid I am not much clearer. You will have to excuse me as I am still having difficulties.
As I understand it the RRD file is stored in data_template_data.data_source_path
I am trying to be able to use user_auth_perms.item_id
to retrieve
data_template_data.data_source_path
I understand
user_auth_perms.item_id = graph_templates_graph.graph_local_id
I am obviously missing something. Any help would be appreciated
Thankyou
As I understand it the RRD file is stored in data_template_data.data_source_path
I am trying to be able to use user_auth_perms.item_id
to retrieve
data_template_data.data_source_path
I understand
user_auth_perms.item_id = graph_templates_graph.graph_local_id
I am obviously missing something. Any help would be appreciated
Thankyou
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Kind of, correct and kinda wrong.
Check out the routine in php that figures out permissions, it will give you ideas. Start looking in graph.php file and go from there.
Check out the routine in php that figures out permissions, it will give you ideas. Start looking in graph.php file and go from there.
[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:
That Database schema was not written by a professional document management specialist
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?
Who is online
Users browsing this forum: No registered users and 0 guests