[Xymon] How to debug showgraph.sh?

Henrik Størner henrik at hswn.dk
Fri Jul 27 22:09:28 CEST 2012


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

(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&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" 
(i.e. everything after the "?" in the URL)

export REQUEST_METHOD SCRIPT_NAME QUERY_STRING

xymoncmd showgraph.cgi


Regards,
Henrik




More information about the Xymon mailing list