Is there an alternative to frames for doing this?

Bes

Bes

Soldato
Joined
18 Oct 2002
Posts
7,318
Location
Melbourne
Hi

I have a set of RRDTool charts and want to build a site around it linking to different charts.

Unfortunately I cannot seem to include anything in the .cgi code being used to build the RRD other than HTML and CSS. (Just either doesnt work or breaks the RRDTool output).

Is there any alternative I can use to get a smart navigation down the left hand side other than using frames?

Thanks
 
Hi

I have a set of RRDTool charts and want to build a site around it linking to different charts.

Unfortunately I cannot seem to include anything in the .cgi code being used to build the RRD other than HTML and CSS. (Just either doesnt work or breaks the RRDTool output).

Is there any alternative I can use to get a smart navigation down the left hand side other than using frames?

Thanks

Can you come at it the other way? i.e. Instead of attempting to include something in the RDT code, try including the generated content from the tool in a PHP page?
 
Hmm its tricky as I use the URL to build the RRD query- eg I have a link that contains a bunch of values in the URL- the RRD query then uses these values to build the correct charts.. Given the number of servers I am monitoring, it's either do this, or create a LOT of cgi pages AFAIK.

I guess another apporach might be to generate the content every x seconds regardless of whether anyone wants it and then just include the images in a regular page?
 
Hmm its tricky as I use the URL to build the RRD query- eg I have a link that contains a bunch of values in the URL- the RRD query then uses these values to build the correct charts.. Given the number of servers I am monitoring, it's either do this, or create a LOT of cgi pages AFAIK.

I guess another apporach might be to generate the content every x seconds regardless of whether anyone wants it and then just include the images in a regular page?

*edit* the following assumes you have PHP support on the server...
You can get the result of a web request using fopen(), file_get_contents(), curl, or the PEAR/HTTP_Request library. It works for HTML content but im not so sure how it would handle an image - you'd have to read the docs.

The auto-generation sounds like it would work but that depends how critical up-to-date data is for your users and whether it's ok to put that load on the server.
 
Back
Top Bottom