[rrd-users] How to pass name values to rrdcgi script
Vinod Sharma
vk.kaushik2006 at gmail.com
Wed Jun 9 06:37:23 CEST 2010
Hi All,
Just to update here that I found the solution.
do
export REQUEST_METHOD=GET
export QUERY_STRING=name=value
./script.cgi
Regards,
On Tue, Jun 8, 2010 at 3:37 PM, Vinod Sharma <vk.kaushik2006 at gmail.com>wrote:
> Hi All,
>
> I am using below rrdcgi script to display my graphs on webpage. It works
> fine when i pass the name=value pairs with my server name i.e. "
> http://www.server.com/cgi-bin/rrdcgi.cgi?host=A1".
>
> But when i try to execute this from command line it is not readting the
> name=value paris. i.e. "$./rrdcgi.cgi host=A1"
>
> Code:
> ==============================
> #!/usr/bin/rrdcgi
> <html>
> <head>
> <title>Graphs</title>
> </head>
> <body>
> <RRD::INCLUDE rrd.config>
> <RRD::GRAPH
> <RRD::GETVAR PATH>/img/<RRD::CV host>.png
> --title="Load For <RRD::CV host>"
> -w 1048 -h 266
> --end=midnight
> --start=end-1d
> --imginfo '<IMG SRC=<RRD::GETVAR PATH>/rrdimg/%s WIDTH=%lu
> HEIGHT=%lu >'
> DEF:l=<RRD::GETVAR PATH>/host_<RRD::CV host>.rrd:load:AVERAGE
> LINE2:l#0000ff:Load
> >
> ========================================
> Please suggest what I am doing wrong.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20100609/74ec528b/attachment-0001.htm
More information about the rrd-users
mailing list