[hobbit] alternate page graphs custom menu

Marco Avvisano marco.avvisano at regione.toscana.it
Thu Mar 13 15:16:43 CET 2008


Someone have resolved this problem ?

thanks,

Marco

  ----- Original Message ----- 
  From: Jonathan van liefde 
  To: hobbit at hswn.dk 
  Sent: Wednesday, August 01, 2007 10:39 AM
  Subject: RE: [hobbit] alternate page graphs custom menu


  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 display
  CGI_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


------------------------------------------------------------------------------

    a.. References: 
      a.. alternate page graphs custom menu 
        a.. From: Jonathan van liefde
    a.. Prev by Date: Testing Hobbit Client Log "IGNORE" filters 
    b.. Next by Date: RE: [hobbit] Question 
    c.. Previous by thread: alternate page graphs custom menu 
    d.. Next by thread: Question about hobbit alert acknowledgement, delay of next alert time 
    e.. Index(es): 
      a.. Date
      b.. Thread




    a.. To: <hobbit (at) hswn.dk>
    b.. Subject: RE: [hobbit] alternate page graphs custom menu
    c.. From: "Tom Moore" <Tom.Moore (at) sas.com>
    d.. Date: Mon, 30 Jul 2007 16:42:04 -0400
    e.. References: <BAY139-W17B66F209315AF69B9FFAAD4EE0 (at) phx.gbl>
    f.. Thread-index: AcfS6INBn1czzAgURTOpkFRYPh5mBAAAJ72Q
    g.. Thread-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> 
------------------------------------------------------------------------------

    a.. References: 
      a.. alternate page graphs custom menu 
        a.. From: Jonathan van liefde
    a.. Prev by Date: Testing Hobbit Client Log "IGNORE" filters 
    b.. Next by Date: RE: [hobbit] Question 
    c.. Previous by thread: alternate page graphs custom menu 
    d.. Next by thread: Question about hobbit alert acknowledgement, delay of next alert time 
    e.. Index(es): 
      a.. Date
      b.. Thread


------------------------------------------------------------------------------
  het ultieme online mailprogramma! Ontdek Windows Live Hotmail, 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080313/460b7eba/attachment.html>


More information about the Xymon mailing list