[hobbit] alternate page graphs custom menu

Jonathan van liefde jokketan at hotmail.com
Wed Aug 1 11:39:08 CEST 2007


I had already tried the same thing but i don't succeed in getting hobbit to show the alternate templates for the current graphs. Even when i add the --templates=/wherever/you/want directive to this line in hobbitcgi.cnf ( i know this would change the main site also, it's just a test )# hobbitsvc.cgi options for a normal (current) status displayCGI_SVC_OPTS="--env=/usr/lib/hobbit/server/etc/hobbitserver.cfg --no-svcid --history=top"I also tried adding another variable ($ALT_OPTS) that i created myself in the .sh script that generates the page and then adding it to the bb-hostsvc.sh like this: . /usr/local/hobbit/server/etc/hobbitcgi.cfg exec /usr/local/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS $ALT_OPTSWhich basically also does nothing...Can anyone shed some light on this??? Seems like i am missing something obvious...Thanks,Jonathan Van Liefde






References:
alternate page graphs custom menu
From: Jonathan van liefde


Prev by Date:
Testing Hobbit Client Log "IGNORE" filters
Next by Date:
RE: [hobbit] Question
Previous by thread:
alternate page graphs custom menu
Next by thread:
Question about hobbit alert acknowledgement, delay of next alert time
Index(es):
DateThread
To: <hobbit (at) hswn.dk>Subject: RE: [hobbit] alternate page graphs custom menuFrom: "Tom Moore" <Tom.Moore (at) sas.com>Date: Mon, 30 Jul 2007 16:42:04 -0400References: <BAY139-W17B66F209315AF69B9FFAAD4EE0 (at) phx.gbl>Thread-index: AcfS6INBn1czzAgURTOpkFRYPh5mBAAAJ72QThread-topic: [hobbit] alternate page graphs custom menu





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 PMTo: hobbit (at) hswn.dkSubject: [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> 






References:
alternate page graphs custom menu
From: Jonathan van liefde


Prev by Date:
Testing Hobbit Client Log "IGNORE" filters
Next by Date:
RE: [hobbit] Question
Previous by thread:
alternate page graphs custom menu
Next by thread:
Question about hobbit alert acknowledgement, delay of next alert time
Index(es):
DateThread

_________________________________________________________________
Ontdek Windows Live Hotmail, het ultieme online mailprogramma!
http://get.live.com/mail/overview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20070801/1606c6cf/attachment.html>


More information about the Xymon mailing list