Footer/header issue on html generated by CGI
Nicolas LIENARD (For Hobbit)
nico at crysto.org
Thu Nov 27 17:58:20 CET 2008
Hi,
To sum up, i want to change header/footer for a special view in hobbit.
But I got an issue on the html pages generated by cgi *only*.
It works well for static html page.
For this, i created a new view which is using other footer/header:
[bbdisplay-newstyle]
ENVFILE /opt/hobbit/server/etc/hobbitserver-newstyle.cfg
ENVAREA COLTONLINE
NEEDS hobbitd
GROUP generators
CMD bbgen $BBGENOPTS \
--pageset=newstyle \
$BBHOME/www/newstyle-set/ \
--template=newstyle \
--report \
--report=NEWSTYLE \
--ignorecolumns=mem,fw,fwcons,netstat,insight,ssh,ftp,timediff,vmstat,msgs,update
\
--subpagecolumns=1
LOGFILE $BBSERVERLOGS/bb-newstyle.log
INTERVAL 1m
So, i modified ~hobbit/server/web/newstyle_header and newstyle_footer.
-> that works fine.
For the BODY, I modified hobbitserver-newstyle.cfg (MKBBACKFONT /
MKBBCOLFONT / MKBBROWFONT / MKBBTITLE ).
--> that works fine.
My problem is when i m clicking on the ping check for instance:
/hobbit-cgi/bb-hostsvc.sh?HOST=test-device&SERVICE=ping
The footer/header used are differents, hobbit is using :
~hobbit/server/web/hostsvc_footer and header.
So, i tried to see if in the shell script which call the cgi, there is
some variables for footer/header
/cgi-bin/bb-hostsvc.sh
-------
. /opt/hobbit/server/etc/hobbitcgi-newstyle.cfg
exec /opt/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS
-------
I checked /opt/hobbit/server/etc/hobbitcgi.cfg default file, but there is
nothing about footer/header.
So, my question is :
is there some hidden variables that i could add anywhere for linking
differenty the footer/header of each CGI.
Any trick is welcome.
thanks !!!
Regards,
nicolas liƩnard
More information about the Xymon
mailing list