You could also insert this into showgraph.sh
env > /tmp/showgraph.out
to save the query string and other things. Add in the export & xymoncmd
lines and you have a script to fiddle with.
Ralph Mitchell
On Jul 27, 2012 4:09 PM, "Henrik Størner" <user-ce4a2c883f75@xymon.invalid> wrote:
On 27-07-2012 18:41, John Horne wrote:
Hello,
I'm sure I saw a way to run showgraph.sh from the command-line in order
to debug problems with it. As far as I remember it required setting the
variable QUERY and perhaps some others before running it. I have looked,
but cannot find how this was done.
Can anyone offer any help here?
If you have a graph link in your browser like
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<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>
(taken from the "cpu" graph on the www.xymon.com site), then you can run
it "by hand" with:
REQUEST_METHOD=GET
SCRIPT_NAME=showgraph.sh
QUERY_STRING="host=jorn.hswn.**dk <http://jorn.hswn.dk>
&service=la&graph_width=864&**graph_height=180&disp=jorn.**hswn.dk<http://jorn.hswn.dk>
&nostale&color=green&**graph_start=1343160394&graph_**
end=1343419594&graph=hourly&**action=view" (i.e. everything after the "?"
in the URL)
export REQUEST_METHOD SCRIPT_NAME QUERY_STRING
xymoncmd showgraph.cgi
Regards,
Henrik
______________________________**
Xymon at xymon.com<