[Xymon] How to debug showgraph.sh?

Ralph Mitchell ralphmitchell at gmail.com
Fri Jul 27 23:26:33 CEST 2012


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" <henrik at hswn.dk> 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 mailing list
> Xymon at xymon.com
> http://lists.xymon.com/**mailman/listinfo/xymon<http://lists.xymon.com/mailman/listinfo/xymon>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120727/8f1815fc/attachment.html>


More information about the Xymon mailing list