<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana, helvetica, sans-serif;font-size:10pt"><div>Hi all,</div><div><br></div><div><br></div><div>I found in the archive the problem described below, but I can't found the solution.</div><div><br></div><div>Did someone found an work around to differentiated the CGI generation template by the xymon alternate pageset?</div><div><br></div><div>The final objective is to have some indipendent alternate pages for a different users. And keep the Xymon server security disabling/modifing the menu generated from the CGI.</div><div><br></div><div>N.B. I'm using Xymon version 4.2.3.</div><div><br></div><div>Thanks in advance</div><div>Andrea</div><div><br></div><div>-------------------------------------------------------------------------------------------------------------------------</div><div><h1 style="font-family: 'Times New Roman'; font-size: medium;
">Footer/header issue on html generated by CGI</h1><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><b>Nicolas LIENARD (For Hobbit)</b></span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "> </span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><a href="mailto:xymon%40xymon.com?Subject=Re%3A%20Footer/header%20issue%20on%20%20html%20generated%20by%20CGI&In-Reply-To=%3C65431.195.68.1.120.1227805100.squirrel%40webmail.lienard.name%3E" title="Footer/header issue on html generated by CGI">nico at crysto.org </a></span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><br></span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><i>Thu Nov 27 17:58:20 CET 2008</i></span><p style="font-family: 'Times New Roman'; font-size: medium;
"></p><ul style="font-family: 'Times New Roman'; font-size: medium; "><li>Previous message: <a href="http://lists.xymon.com/archive/2008-November/022381.html">[hobbit] services just marked with "-" on some monitored hosts</a></li><li>Next message: <a href="http://lists.xymon.com/archive/2008-November/022383.html">Programs for monitoring JBOSS</a></li><li><b>Messages sorted by:</b> <a href="http://lists.xymon.com/archive/2008-November/date.html#22382">[ date ]</a> <a href="http://lists.xymon.com/archive/2008-November/thread.html#22382">[ thread ]</a> <a href="http://lists.xymon.com/archive/2008-November/subject.html#22382">[ subject ]</a> <a href="http://lists.xymon.com/archive/2008-November/author.html#22382">[ author ]</a></li></ul><hr style="font-family: 'Times New Roman'; font-size: medium; "><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><pre style="white-space: pre-wrap; ">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
</pre><div><br></div></span></div><div style="position:fixed"></div>
</div></body></html>