That's exactly the problem I am having and posted to the list a few weeks ago. It seems that the actual cgi scripts that run when you click on an item use the default header sets, rather than the ones specified by your --templates or --pageset settings with bbgen. The first page on the pageset does use the custom_header and custom_footer files, but if you click on an item like "cpu", it runs a cgi script which generates a new page using the default templates instead of your custom ones.
For example, most of the items call "bb-hostsvc.sh". which is just a wrapper that takes arguments and runs
. /usr/local/hobbit/server/etc/hobbitcgi.cfg
exec /usr/local/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS
Now, optimally you should be able to put a custom $CGI_SVC_OPTS definition in whatever script generates your alternate pages, such that
CGI_SVC_OPTS=--templates=/whatever/directory/with/your/new/templatefiles
Unfortunately, even this doesn't seem to work. The key is to get your custom sub-pages to use custom templates for the graph pages and such that are dynamically generated by the CGI files.
From: Jonathan van liefde [mailto:jokketan at hotmail.com] Sent: Monday, July 30, 2007 1:40 PM To: hobbit at hswn.dk Subject: [hobbit] alternate page graphs custom menu
Hi,
My problem is the following:
We are using the monitoring tool for a helpdesk, every member of the helpdesk has full access to every hobbit page. Local guys should have access to a limited area of the hobbit page. So i have build an alternate page set with all different sections and restricted access with a .htaccess file. This alternate page set uses a different set of headers and footers (without the menu) to prevent local guys from wandering off. But when they look at for example the conn graph for a given host, hobbit uses the bb_header and bb_footer which still has the menu in it. Is there any way to tell hobbit to use the alternate page set header and footer for the graphs of a host when they are accessed through the alternate page set?
Thanks for your help,
Jonathan Van Liefde.
het ultieme online mailprogramma! Ontdek Windows Live Hotmail, <http://get.live.com/mail/overview>