<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>
I had already tried the same thing but i don't succeed in getting hobbit to show the alternate templates for the current graphs. <br><br>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 )<br><br><span style="font-style: italic;"># hobbitsvc.cgi options for a normal (current) status display<br>CGI_SVC_OPTS="--env=/usr/lib/hobbit/server/etc/hobbitserver.cfg --no-svcid --history=top"<br><br></span><br>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 <span style="font-style: italic;"></span>bb-hostsvc.sh like this:<br><br> <span style="font-style: italic;"><br></span><pre>. /usr/local/hobbit/server/etc/hobbitcgi.cfg<br><br> exec /usr/local/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS $ALT_OPTS<br><br><br>Which basically also does nothing...<br><br>Can anyone shed some light on this??? Seems like i am missing something obvious...<br><br>Thanks,<br><br>Jonathan Van Liefde<br></pre>
<span style="font-style: italic;"><br></span><br><!--X-Body-of-Message-End--><!--X-MsgBody-End-->

<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul><li><strong><a name="00525" href="http://www.hswn.dk/hobbiton/2007/07/msg00525.html">alternate page graphs custom menu</a></strong>
<ul><li><em>From:</em> Jonathan van liefde</li></ul></li></ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul><li>Prev by Date:
<strong><a href="http://www.hswn.dk/hobbiton/2007/07/msg00527.html">Testing Hobbit Client Log "IGNORE" filters</a></strong>
</li><li>Next by Date:
<strong><a href="http://www.hswn.dk/hobbiton/2007/07/msg00528.html">RE: [hobbit] Question</a></strong>
</li><li>Previous by thread:
<strong><a href="http://www.hswn.dk/hobbiton/2007/07/msg00525.html">alternate page graphs custom menu</a></strong>
</li><li>Next by thread:
<strong><a href="http://www.hswn.dk/hobbiton/2007/07/msg00523.html">Question about hobbit alert acknowledgement, delay of next alert time</a></strong>
</li><li>Index(es):
<ul><li><a href="http://www.hswn.dk/hobbiton/2007/07/index.html#00526"><strong>Date</strong></a></li><li><a href="http://www.hswn.dk/hobbiton/2007/07/threads.html#00526"><strong>Thread</strong></a></li></ul>
</li></ul><br><br><br><ul><li><em>To</em>: <hobbit (at) hswn.dk></li><li><em>Subject</em>: RE: [hobbit] alternate page graphs custom menu</li><li><em>From</em>: "Tom Moore" <Tom.Moore (at) sas.com></li><li><em>Date</em>: Mon, 30 Jul 2007 16:42:04 -0400</li><li><em>References</em>: <BAY139-W17B66F209315AF69B9FFAAD4EE0 (at) phx.gbl></li><li><em>Thread-index</em>: AcfS6INBn1czzAgURTOpkFRYPh5mBAAAJ72Q</li><li><em>Thread-topic</em>: [hobbit] alternate page graphs custom menu</li></ul>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<hr>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<pre>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.<br><br> <br><br>For example, most of the items call "bb-hostsvc.sh". which is just a wrapper that takes arguments and runs<br><br> <br><br>. /usr/local/hobbit/server/etc/hobbitcgi.cfg<br><br> exec /usr/local/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS<br><br> <br><br> <br><br>Now, optimally you should be able to put a custom $CGI_SVC_OPTS definition in whatever script generates your alternate pages, such that<br><br> <br><br>CGI_SVC_OPTS=--templates=/whatever/directory/with/your/new/templatefiles<br><br> <br><br>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.<br><br> <br><br> <br><br> <br><br>From: Jonathan van liefde [<a rel="nofollow" href="mailto:jokketan">mailto:jokketan</a> (at) hotmail.com] <br>Sent: Monday, July 30, 2007 1:40 PM<br>To: hobbit (at) hswn.dk<br>Subject: [hobbit] alternate page graphs custom menu<br><br> <br><br>Hi,<br><br>My problem is the following:<br><br>We are using the monitoring tool for a helpdesk, every member of the helpdesk has full access to every hobbit page.<br>Local guys should have access to a limited area of the hobbit page.<br>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.<br>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.<br>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?<br><br>Thanks for your help,<br><br>Jonathan Van Liefde.<br><br>________________________________<br><br>het ultieme online mailprogramma! Ontdek Windows Live Hotmail, <<a rel="nofollow" href="http://get.live.com/mail/overview">http://get.live.com/mail/overview</a>> <br><br></pre>
<!--X-Body-of-Message-End--><!--X-MsgBody-End-->

<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul><li><strong><a name="00525" href="http://www.hswn.dk/hobbiton/2007/07/msg00525.html">alternate page graphs custom menu</a></strong>
<ul><li><em>From:</em> Jonathan van liefde</li></ul></li></ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul><li>Prev by Date:
<strong><a href="http://www.hswn.dk/hobbiton/2007/07/msg00527.html">Testing Hobbit Client Log "IGNORE" filters</a></strong>
</li><li>Next by Date:
<strong><a href="http://www.hswn.dk/hobbiton/2007/07/msg00528.html">RE: [hobbit] Question</a></strong>
</li><li>Previous by thread:
<strong><a href="http://www.hswn.dk/hobbiton/2007/07/msg00525.html">alternate page graphs custom menu</a></strong>
</li><li>Next by thread:
<strong><a href="http://www.hswn.dk/hobbiton/2007/07/msg00523.html">Question about hobbit alert acknowledgement, delay of next alert time</a></strong>
</li><li>Index(es):
<ul><li><a href="http://www.hswn.dk/hobbiton/2007/07/index.html#00526"><strong>Date</strong></a></li><li><a href="http://www.hswn.dk/hobbiton/2007/07/threads.html#00526"><strong>Thread</strong></a></li></ul>
</li></ul><br /><hr />het ultieme online mailprogramma! <a href='http://get.live.com/mail/overview' target='_new'>Ontdek Windows Live Hotmail,</a></body>
</html>