[hobbit] [SEGFAULT] Re: [hobbit] graphs with external script

mario andre rower.master at gmail.com
Fri Sep 23 20:20:55 CEST 2005


Henrik,
 I'm already generating a graph for my ext clientside script in the trends
column, but I would like to show the first graph(last 48 hours) in the
service column page.
 I've put this line into the ext script
GRAP="<A HREF=/hobbit-cgi/hobbitgraph.sh
host=express&service=synclog&disp=express&action=menu><IMG BORDER=0
SRC=/hobbit-cgi/hobbitgraph.sh?host=express&service=synclog&disp=express&graph=hourly&action=view
></a>"
and
 $BB $BBDISP "status $MACHINE.$TEST $COLOR `$DATE` - $STATUS - $STATUS1 $L2
$GRAP"
 This show the graph but starts some erros of DS in the larrd-status.log
  Any hint or a easy and clean way?
 Thanks in advance my friend,
 Mario.
 On 9/21/05, Henrik Storner <henrik at hswn.dk> wrote:
>
> In <1126001260.31317.57.camel at localhost.localdomain> Etienne Roulland <
> Etienne.Roulland at cvf.fr> writes:
>
> >QUERY_STRING="host=
> sms-sql02b.sms33.cvf&service=mysql&graph_width=576&graph_height=120&first=1&count=1&disp=sms%2dsql02b%2esms33%2ecvf&graph=hourly&action=view"
> ./hobbitgraph.sh
> >Segmentation fault
>
> When testing CGI scripts such as hobbitgraph.cgi, you must
> provide all of the environment variables that the webserver
> normally sets up for you.
>
> Specifically, hobbitgraph expects the REQUEST_URI environment
> variable to be set. So:
>
> QUERY_STRING="host=...."
> export QUERY_STRING
> REQUEST_URI="http://localhost/cgi-bin/hobbitgraph.sh?${QUERY_STRING}"
> export REQUEST_URI
> ./hobbitgraph.sh
>
>
> Henrik
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20050923/8c8df3af/attachment.html>


More information about the Xymon mailing list