Xymon Mailing List Archive search

alternate page graphs custom menu

4 messages in this thread

list Jonathan van Liefde · Mon, 30 Jul 2007 17:39:41 +0000 ·
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.
Ontdek Windows Live Hotmail, het ultieme online mailprogramma!
http://get.live.com/mail/overview
list Tom Moore · Mon, 30 Jul 2007 16:42:04 -0400 ·
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:user-35a1e08c6322@xymon.invalid] 
Sent: Monday, July 30, 2007 1:40 PM
To: user-ae9b8668bcde@xymon.invalid
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>;
list Jonathan van Liefde · Wed, 1 Aug 2007 09:39:08 +0000 ·
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: <user-ae9b8668bcde@xymon.invalid>Subject: RE: [hobbit] alternate page graphs custom menuFrom: "Tom Moore" <user-09591bca676f@xymon.invalid>Date: Mon, 30 Jul 2007 16:42:04 -0400References: <user-28ddad1f7b0c@xymon.invalid>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:user-35a1e08c6322@xymon.invalid] Sent: Monday, July 30, 2007 1:40 PMTo: user-2607dbc47d4f@xymon.invalid: [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
list Marco Avvisano · Thu, 13 Mar 2008 15:16:43 +0100 ·
Someone have resolved this problem ?

thanks,

Marco

  ----- Original Message -----   From: Jonathan van liefde   To: user-ae9b8668bcde@xymon.invalid   Sent: Wednesday, August 01, 2007 10:39 AM
  Subject: RE: [hobbit] alternate page graphs custom menu
quoted from Jonathan van Liefde


  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: <user-ae9b8668bcde@xymon.invalid>
    b.. Subject: RE: [hobbit] alternate page graphs custom menu
    c.. From: "Tom Moore" <user-09591bca676f@xymon.invalid>
    d.. Date: Mon, 30 Jul 2007 16:42:04 -0400
    e.. References: <user-28ddad1f7b0c@xymon.invalid>
    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:user-35a1e08c6322@xymon.invalid] Sent: Monday, July 30, 2007 1:40 PMTo: user-2607dbc47d4f@xymon.invalid: [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,