External graph instanciation
Moderators: Developers, Moderators
External graph instanciation
Hi,
I am coding some perl scripts to update RRD files and Cacti objects. The scripts create the device, data template, grah template and data sources.
The last update fails : I cannot link an instantiated graph to its data sources.
Can you tell me where to look in the source code to find the right SQL queries?
Mat
I am coding some perl scripts to update RRD files and Cacti objects. The scripts create the device, data template, grah template and data sources.
The last update fails : I cannot link an instantiated graph to its data sources.
Can you tell me where to look in the source code to find the right SQL queries?
Mat
- Attachments
-
- graph.png (14.09 KiB) Viewed 1798 times
For starters, turn on graph debugging to find out why the graph won't render.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
The graph_templates_item is not completely updated.
Can you confirm my algorithm ?
Can you confirm my algorithm ?
Code: Select all
foreach datasource
get its graph_local_id
foreach "SELECT * FROM graph_templates_item WHERE graph_template_id=<gt_id> AND local_graph_id=0"
create the graph_template_item
done
done
You do know cacti comes with scripts for the creation of all that stuff, right? \cacti\cli\ directory.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
I used add_graphs.php but I need to define RRD files' path. I use one RRD file per datasource.
For example :
Is it possible to specify each datasource path ?
For example :
- load 1 : /var/www/html/cacti/rra/myhost/load/load1.rrd
load 5 : /var/www/html/cacti/rra/myhost/load/load5.rrd
load 15 : /var/www/html/cacti/rra/myhost/load/load15.rrd
Is it possible to specify each datasource path ?
Nope.MisterG wrote:Is it possible to specify each datasource path ?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 8 guests