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 <user-ce4a2c883f75@xymon.invalid> wrote:
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