Xymon Mailing List Archive search

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

list Henrik Størner
Wed, 21 Sep 2005 13:58:31 +0000 (UTC)
Message-Id: <dgrou7$4m0$user-e356fad9864f@xymon.invalid>

In <user-a65371cc52e9@xymon.invalid> Etienne Roulland <user-318b6b240fb9@xymon.invalid> 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