RRD::CGI::Image - accept CGI-style rrdgraph args to build and print image


RRD-CGI-Image documentation  | view source Contained in the RRD-CGI-Image distribution.

Index


NAME

Top

RRD::CGI::Image - accept CGI-style rrdgraph args to build and print image

NOTICE

Top

This is development code - the API may change!

SYNOPSIS

Top

    use RRD::CGI::Image;
	use CGI qw[Vars header];

    my $image = RRD::CGI::Image->new(
		rrd_base  => '/var/rrd',
		error_img => '/var/www/.../path/to/graphing_error.png',
	);

	print header( 'image/png' );
	$image->print_graph( Vars() );

METHODS

Top

new() - create new object to handle your bidding

Behaves like any other new(), really.

output_file() - where will the new graph be created?

Defaults to STDOUT (-).

rrd_base() - pathname to your RRD files.

Users will be able to specify partial paths to the RRDs beneath this directory in their DEF declarations but they will be sandboxed into this directory. Don't be too permissive - it's a security risk.

Must end with "/".

error_img() - pathname (not URL) to an image that says "an error happened".

Check your webserver's logs to see what went wrong.

tz() - get/set the timezone for the graph.

Pertinent if you have RRDs in different timezones.

normalize_params() - clean up and reassemble the input params

Called internally.

logging() - if true, will print the normalized (processed) params to log

AUTHOR

Top

Joshua Keroes, <joshua at cpan.org>

BUGS

Top

Please report any bugs or feature requests to bug-rrd-cgi-image at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=RRD-CGI-Image. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc RRD::CGI::Image

You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=RRD-CGI-Image

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/RRD-CGI-Image

* CPAN Ratings

http://cpanratings.perl.org/d/RRD-CGI-Image

* Search CPAN

http://search.cpan.org/dist/RRD-CGI-Image

SEE ALSO

Top

RRDs

COPYRIGHT & LICENSE

Top


RRD-CGI-Image documentation  | view source Contained in the RRD-CGI-Image distribution.