Hi All,<br><br>Just to update here that I found the solution.<br><br>do<br><pre>export REQUEST_METHOD=GET<br>export QUERY_STRING=name=value<br>./script.cgi<br><br>Regards,<br><br></pre><br><div class="gmail_quote">On Tue, Jun 8, 2010 at 3:37 PM, Vinod Sharma <span dir="ltr"><<a href="mailto:vk.kaushik2006@gmail.com">vk.kaushik2006@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi All,<br><br>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. "<a href="http://www.server.com/cgi-bin/rrdcgi.cgi?host=A1" target="_blank">http://www.server.com/cgi-bin/rrdcgi.cgi?host=A1</a>".<br>
<br>But when i try to execute this from command line it is not readting the name=value paris. i.e. "$./rrdcgi.cgi host=A1"<br><br>Code:<br>==============================<br>#!/usr/bin/rrdcgi<br><html><br>
<head><br>
<title>Graphs</title><br></head><br><body><br><RRD::INCLUDE rrd.config><br><RRD::GRAPH<br> <RRD::GETVAR PATH>/img/<RRD::CV host>.png<br> --title="Load For <RRD::CV host>"<br>
-w 1048 -h 266<br> --end=midnight<br> --start=end-1d<br> --imginfo '<IMG SRC=<RRD::GETVAR PATH>/rrdimg/%s WIDTH=%lu HEIGHT=%lu >'<br> DEF:l=<RRD::GETVAR PATH>/host_<RRD::CV host>.rrd:load:AVERAGE<br>
LINE2:l#0000ff:Load<br>><br>========================================<br>Please suggest what I am doing wrong.<br><br><br>
</blockquote></div><br>