[rrd-users] How to pass name values to rrdcgi script

Vinod Sharma vk.kaushik2006 at gmail.com
Tue Jun 8 12:07:07 CEST 2010


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/20100608/08dfa4bc/attachment-0001.htm 


More information about the rrd-users mailing list