Hello,
We are currently using Cacti and it's working well.
What we'd like to do is embed a graph into a usage meter.
Using the default graph exporter takes too long and loads the server too much.
It takes 2.5 mins hammering the host server to produce these graphs every 5 mins.
EXPORT STATS: ExportDate:2011-05-10_17:02:19 ExportDuration:128.2144 TotalGraphsExported:3234
Is there another way to do this ?
How would I generate a graph when required and embed this in an html page ?
Thanks for your time
Generating graphs for a remote webpage
Moderators: Developers, Moderators
Re: Generating graphs for a remote webpage
Try these steps:
1) Enable guest access
Console -> Settings -> Authentication
- Guest User : guest
Console -> User Management -> guest
- Enabled : on
- Realm Permissions : View Graphs = on
2) Embed graph in remote webpage as follows
1) Enable guest access
Console -> Settings -> Authentication
- Guest User : guest
Console -> User Management -> guest
- Enabled : on
- Realm Permissions : View Graphs = on
2) Embed graph in remote webpage as follows
<img src="http://server/cacti/graph_image.php?local_graph_id=(A)&rra_id=(B)&graph_width=(C)&graph_height=(D)&graph_nolegend=(E)">
- (A) graph ID
- (B) 1=Daily, 2=Weekly, 3=Monthly, 4=Yearly, 5=Hourly
- (C),(D) graph width/height [NOTICE: This size is for plot area, not for whole image]
- (E) true (or blank)
Re: Generating graphs for a remote webpage
Thank you very much, works perfect
Re: Generating graphs for a remote webpage
Thanks I was searching for this for about 3 days . Thanks again!!
Who is online
Users browsing this forum: No registered users and 1 guest