<p>You could also insert this into showgraph.sh</p>
<p>     env > /tmp/showgraph.out</p>
<p>to save the query string and other things.  Add in the export & xymoncmd lines and you have a script to fiddle with.</p>
<p>Ralph Mitchell </p>
<div class="gmail_quote">On Jul 27, 2012 4:09 PM, "Henrik Størner" <<a href="mailto:henrik@hswn.dk">henrik@hswn.dk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On <a href="tel:27-07-2012%2018" value="+12707201218" target="_blank">27-07-2012 18</a>:41, John Horne wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I'm sure I saw a way to run showgraph.sh from the command-line in order<br>
to debug problems with it. As far as I remember it required setting the<br>
variable QUERY and perhaps some others before running it. I have looked,<br>
but cannot find how this was done.<br>
<br>
Can anyone offer any help here?<br>
</blockquote>
<br>
If you have a graph link in your browser like<br>
<br>
<a href="http://www.xymon.com/xymon-cgi/showgraph.sh?host=jorn.hswn.dk&service=la&graph_width=864&graph_height=180&disp=jorn.hswn.dk&nostale&color=green&graph_start=1343160394&graph_end=1343419594&graph=hourly&action=view" target="_blank">http://www.xymon.com/xymon-<u></u>cgi/showgraph.sh?host=jorn.<u></u>hswn.dk&service=la&graph_<u></u>width=864&graph_height=180&<u></u>disp=jorn.hswn.dk&nostale&<u></u>color=green&graph_start=<u></u>1343160394&graph_end=<u></u>1343419594&graph=hourly&<u></u>action=view</a><br>

<br>
(taken from the "cpu" graph on the <a href="http://www.xymon.com" target="_blank">www.xymon.com</a> site), then you can run it "by hand" with:<br>
<br>
<br>
REQUEST_METHOD=GET<br>
SCRIPT_NAME=showgraph.sh<br>
QUERY_STRING="host=<a href="http://jorn.hswn.dk" target="_blank">jorn.hswn.<u></u>dk</a>&service=la&graph_width=864&<u></u>graph_height=180&disp=<a href="http://jorn.hswn.dk" target="_blank">jorn.<u></u>hswn.dk</a>&nostale&color=green&<u></u>graph_start=1343160394&graph_<u></u>end=1343419594&graph=hourly&<u></u>action=view" (i.e. everything after the "?" in the URL)<br>

<br>
export REQUEST_METHOD SCRIPT_NAME QUERY_STRING<br>
<br>
xymoncmd showgraph.cgi<br>
<br>
<br>
Regards,<br>
Henrik<br>
<br>
______________________________<u></u>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/<u></u>mailman/listinfo/xymon</a><br>
</blockquote></div>