Skinning BB
list Alun Watson
Hi there,
This might be heresy but has anyone changed Hobbit so the web page
layout is different?
Perhaps one that uses less graphics ... replace current and recently changed
gifs with html text etc.
Is there an easy way to change this by changing templates or do I have to
hack the C code to modify how the client data in the pages are displayed?
Regards,
Alun
list Henrik Størner
▸
On Thu, May 11, 2006 at 05:10:27PM +1200, Alun Watson wrote:
This might be heresy but has anyone changed Hobbit so the web page layout is different?
I'm sure someone has modified it to fit in with their local setups.
▸
Perhaps one that uses less graphics ... replace current and recently changed gifs with html text etc.
"less graphics" ??? The entire "gifs" directory in Hobbit is a whopping 141 KB of data. This is very little by any current web-standard. So if you want to get rid of all the graphics, you have something else in mind.
▸
Is there an easy way to change this by changing templates or do I have to hack the C code to modify how the client data in the pages are displayed?
For a complete elimination of the graphics, you will need to hack the C code - specifically, bbdisplay/pagegen.c and lib/*log.c . And the templates. Regards, Henrik
list Michael Lowery
If speed is the problem, I know that the pages load extremely slow if you are going through a PIX or Cisco router when "fixup protocol http" or "inspect iosfw http" are enabled due to the javascript menu. Turning that off will greatly speed up the loading of the hobbit pages.
▸
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Sunday, May 14, 2006 3:17 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Skinning BB
On Thu, May 11, 2006 at 05:10:27PM +1200, Alun Watson wrote:This might be heresy but has anyone changed Hobbit so the web page layout is different?
I'm sure someone has modified it to fit in with their local setups.
Perhaps one that uses less graphics ... replace current and recently changed gifs with html text etc.
"less graphics" ??? The entire "gifs" directory in Hobbit is a whopping 141 KB of data. This is very little by any current web-standard. So if you want to get rid of all the graphics, you have something else in mind.
Is there an easy way to change this by changing templates or do I have to hack the C code to modify how the client data in the pages are displayed?
For a complete elimination of the graphics, you will need to hack the C code - specifically, bbdisplay/pagegen.c and lib/*log.c . And the templates. Regards, Henrik
list Alun Watson
Thanks for the Cisco info Michael I'll get the network guys to have a look for me. Our helpdesk uses the All Non-green web page a lot and are only interested in the errors and have problems when they have to scroll up and down the page to figure out which column is which. hostname con msg hostname2 msg ports hostname23 disk So I wanted to have the all non green out put like this ... no pretty gifs etc and I might be able to fit more on the page. A --nogifs option for bbdisplay in hobbitlaunch.cfg would be an ideal option for me if Henrick would consider it ;o). Alun -----Original Message----- From: Michael Lowery [mailto:user-89d72f0c2e3d@xymon.invalid <mailto:user-89d72f0c2e3d@xymon.invalid> ] Sent: Tuesday, 16 May 2006 2:01
▸
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Skinning BB
If speed is the problem, I know that the pages load extremely slow if you
are going through a PIX or Cisco router when "fixup protocol http"
or "inspect iosfw http" are enabled due to the javascript menu. Turning
that off will greatly speed up the loading of the hobbit pages.
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid <mailto:user-ce4a2c883f75@xymon.invalid> ]
Sent: Sunday, May 14, 2006 3:17 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Skinning BB
On Thu, May 11, 2006 at 05:10:27PM +1200, Alun Watson wrote:This might be heresy but has anyone changed Hobbit so the web page layout is different?
I'm sure someone has modified it to fit in with their local setups.
Perhaps one that uses less graphics ... replace current and recently changed gifs with html text etc.
"less graphics" ??? The entire "gifs" directory in Hobbit is a whopping 141 KB of data. This is very little by any current web-standard. So if you want to get rid of all the graphics, you have something else in mind.
Is there an easy way to change this by changing templates or do I have to hack the C code to modify how the client data in the pages are displayed?
For a complete elimination of the graphics, you will need to hack the C code - specifically, bbdisplay/pagegen.c and lib/*log.c . And the templates. Regards, Henrik
list Rich Smrcina
It may just be easier to have a configurable setting of a repeatable heading, x number of rows, for instance. Where the default setting is what it does now, no repeating.
▸
On Monday 15 May 2006 8:58 pm, Alun Watson wrote:Thanks for the Cisco info Michael I'll get the network guys to have a look for me. Our helpdesk uses the All Non-green web page a lot and are only interested in the errors and have problems when they have to scroll up and down the page to figure out which column is which. hostname con msg hostname2 msg ports hostname23 disk So I wanted to have the all non green out put like this ... no pretty gifs etc and I might be able to fit more on the page. A --nogifs option for bbdisplay in hobbitlaunch.cfg would be an ideal option for me if Henrick would consider it ;o). Alun -----Original Message----- From: Michael Lowery [mailto:user-89d72f0c2e3d@xymon.invalid <mailto:user-89d72f0c2e3d@xymon.invalid> ] Sent: Tuesday, 16 May 2006 2:01 To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] Skinning BB If speed is the problem, I know that the pages load extremely slow if you are going through a PIX or Cisco router when "fixup protocol http" or "inspect iosfw http" are enabled due to the javascript menu. Turning that off will greatly speed up the loading of the hobbit pages. -----Original Message----- From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid <mailto:user-ce4a2c883f75@xymon.invalid> ] Sent: Sunday, May 14, 2006 3:17 PM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] Skinning BB On Thu, May 11, 2006 at 05:10:27PM +1200, Alun Watson wrote:This might be heresy but has anyone changed Hobbit so the webpagelayout is different?I'm sure someone has modified it to fit in with their local setups.Perhaps one that uses less graphics ... replace current and recentlychangedgifs with html text etc."less graphics" ??? The entire "gifs" directory in Hobbit is a whopping 141 KB of data. This is very little by any current web-standard. So if you want to get rid of all the graphics, you have something else in mind.Is there an easy way to change this by changing templates or do I havetohack the C code to modify how the client data in the pages aredisplayed? For a complete elimination of the graphics, you will need to hack the C code - specifically, bbdisplay/pagegen.c and lib/*log.c . And the templates. Regards, Henrik
--
Rich Smrcina VM Assist, Inc. Main: (262)392-2026 Cell: (XXX)XXX-XXXX Ans Service: (360)715-2467 user-61add9955ef9@xymon.invalid Catch the WAVV! http://www.wavv.org WAVV 2007 - Green Bay, WI - May 18-22, 2007
list Henrik Størner
▸
On Tue, May 16, 2006 at 01:58:15PM +1200, Alun Watson wrote:
Our helpdesk uses the All Non-green web page a lot and are only interested in the errors and have problems when they have to scroll up and down the page to figure out which column is which.
OK, I understand now. But perhaps it is simpler to "play" with the layout via a simple shell-script (not that I recommend doing shell scripts for performance critical stuff - far from) to get the design/layout right it is a useful prototype. A very rough pure-text version of the All non-green page could be done like the attached script. Stick this in your hobbit CGI directory, and feel free to play with it until you get the layout you want. Regards, Henrik
Attachments (1)
list Henrik Størner
▸
On Tue, May 16, 2006 at 07:43:39AM +0200, Henrik Stoerner wrote:
On Tue, May 16, 2006 at 01:58:15PM +1200, Alun Watson wrote:Our helpdesk uses the All Non-green web page a lot and are only interested in the errors and have problems when they have to scroll up and down the page to figure out which column is which.OK, I understand now. But perhaps it is simpler to "play" with the layout via a simple shell-script (not that I recommend doing shell scripts for performance critical stuff - far from) to get the design/layout right it is a useful prototype.
Thinking about this a bit more, it occurred to me that the current
"hobbit-statusreport" CGI could easily be tweaked to support this.
If you grab the latest snapshot, build it and copy the
web/hobbit-statusreport.cgi file to your ~hobbit/server/bin/ directory.
Then create this wrapper in your Hobbit cgi-bin directory:
#!/bin/sh
. /usr/lib/hobbit/server/etc/hobbitcgi.cfg
exec /usr/lib/hobbit/server/bin/hobbit-statusreport.cgi \
--filter="color=red,yellow" --all \
--heading="All non-green systems" \
--show-column \
--show-summary \
--link
Running this CGI script will produce a text-only report of the
current non-green statuses. The "--show-summary" option causes
the report to have just a stripped-down summary of the current status,
if you want the full status text just remove that option.
Regards,
Henrik
list Thomas Seglard
Hello, I'm asking here what type of info, for bea / weblogic, could you have with hobbit ? For example, could you have a memory and CPU utilisation status by jvm ? Could someone provide me some graph or site to look at ? I got exactly the same questions for oracle. Thanks for your answer(s) ! Sincerly, Thomas Seglard Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite au titre de ce message, s'il a ete altere, deforme ou falsifie. ***** This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
list Francesco Duranti
Last time i tryed the beastat it didn't work because he got some errors while getting the thread list from the bea snmp monitor. I'm trying to write an extention script to use the Weblogic.jar program to get some information on bea servers and put them in hobbit. There are a big number of thing to monitor: memory utilization, cluster status, jdbc pools, Messaging pools and so on... I'm checking what can be useful to monitor with our bea system administrator so I can have more news during the next week. For oracle you can get the bb-roracle extention from www.deadcat.net . I had to modify it to get it work under linux and with it you can monitor many things: # a = Process check ( LOCAL type only) # b = Database check (required otherwise other tests, except (a) are disabled) # c = User proc check ( LOCAL type only ) # d = Users on check # e = Tablespace check # f = Extent check # g = Shadow check ( LOCAL type only ) # h = Name space reload check # i = SQL Area hit ratio check # j = Block buffer hit ratio check # k = Shared memory check # l = Rollback segment check # m = Invalid Object check # n = Deadlock check # o = Processes check # p = Sessions check The test must be run locally on the oracle server to get the "local type only" check or you can run it on the hobbit server to get all the other information. Da: user-bb3e9041f07f@xymon.invalid [mailto:user-bb3e9041f07f@xymon.invalid] Inviato: mer 17/05/2006 18.42 A: user-ae9b8668bcde@xymon.invalid Oggetto: [hobbit] Weblogic, beatstat and oracle
▸
Hello,
I'm asking here what type of info, for bea / weblogic, could you have with
hobbit ? For example, could you have a memory and CPU utilisation status
by jvm ? Could someone provide me some graph or site to look at ?
I got exactly the same questions for oracle.
Thanks for your answer(s) !
Sincerly,
Thomas Seglard
Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires.
Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est
interdite, sauf autorisation expresse.
L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite
au titre de ce message, s'il a ete altere, deforme ou falsifie.
*****
This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
list Thomas Seglard
Hello, I've got a strange behaviour when I want to zoom a graph. I got the zoom but... from another filesystems !! I'm pasting two images : one before the zoom and one after. I have a lot of filesystems on this system, could it be the cause ? I don't think, because I got another system with several fs and this doesn't happen ! I'm running hobbit V4.1.2p1 and my client runs on hpux 11i (11.11). Best regards, Thomas
▸
Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires.
Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est
interdite, sauf autorisation expresse.
L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite
au titre de ce message, s'il a ete altere, deforme ou falsifie.
*****
This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
list Craig Whilding
I had this happen, with me it was due to a cdrom being mounted at somepoint and monitored and the rrd was still in place and messing up the zoom. Hope this helps. Craig
▸
-----Original Message-----
From: user-bb3e9041f07f@xymon.invalid [mailto:user-bb3e9041f07f@xymon.invalid]
Sent: 22 May 2006 11:37
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Problem with custom graphs
Hello,
I've got a strange behaviour when I want to zoom a graph. I got the zoom
but... from another filesystems !! I'm pasting two images : one before
the
zoom and one after. I have a lot of filesystems on this system, could it
be the cause ? I don't think, because I got another system with several
fs
and this doesn't happen !
I'm running hobbit V4.1.2p1 and my client runs on hpux 11i (11.11).
Best regards,
Thomas
Ce message (et toutes ses pieces jointes eventuelles) est confidentiel
et etabli a l'intention exclusive de ses destinataires.
Toute utilisation de ce message non conforme a sa destination, toute
diffusion ou toute publication, totale ou partielle, est
interdite, sauf autorisation expresse.
L'internet ne permettant pas d'assurer l'integrite de ce message, CNP
Assurances et ses filiales declinent toute responsabilite
au titre de ce message, s'il a ete altere, deforme ou falsifie.
*****
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither CNP Assurances nor any of its subsidiaries or affiliates shall
be liable for the message if altered, changed or falsified.
list Thomas Seglard
Hi, is it possible to create a page dedicated to some servers and give access to some people/clients. Thus, I don't want these people/clients to be able to see or browse the other pages into Hobbit. Thanks for your answer(s) !
▸
Regards,
Thomas
Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires.
Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est
interdite, sauf autorisation expresse.
L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite
au titre de ce message, s'il a ete altere, deforme ou falsifie.
*****
This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
list Larry Barber
It's quite easy using alternate pagesets and the Apache security apparatus. Just create the pageset, put the servers you want in the pageset using the pageset tags, let Hobbit create the directories for the pageset (you will need to create the top directory in the set for some reason), then place .htaccess files in each directory of the pageset. I've created several different pagesets for different customers this way. Thanks, Larry Barber
▸
On 5/23/06, user-bb3e9041f07f@xymon.invalid <user-bb3e9041f07f@xymon.invalid> wrote:Hi, is it possible to create a page dedicated to some servers and give access to some people/clients. Thus, I don't want these people/clients to be able to see or browse the other pages into Hobbit. Thanks for your answer(s) ! Regards, Thomas Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite au titre de ce message, s'il a ete altere, deforme ou falsifie. ***** This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
list Alun Watson
The Summary Screen is great for me but not quite what the helpdesk is looking for. I have modified the original shell script that Henrick sent me. I have included the hacked file and Erik Bosrup's overLIB javascript.It provides a small list of the error states a host has ie, Host error error1 error2 Quick visual assessment of when errors happened with popups that display the graph for that error (if there is one) using overlib_mini.js. To try it out copy ng.sh into your hobbit-cgi/ directory ... modify ng.sh to suit your environment BBSERVERROOT="/home/hobbit" HOBBITHTTP="http://something.blah/hobbit"; HOBBITCGI="http://something.blah/hobbit-cgi"; And put overlib_mini.js into the /hobbit/ dir of your webserver The popups seem to work in recent versions of IE and Firefox. It's not quite perfect but perhaps it conveys my idea more successfully. Regards, Alun
▸
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Tuesday, 16 May 2006 10:32
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Skinning BB
On Tue, May 16, 2006 at 07:43:39AM +0200, Henrik Stoerner wrote:On Tue, May 16, 2006 at 01:58:15PM +1200, Alun Watson wrote:Our helpdesk uses the All Non-green web page a lot and are only interested in the errors and have problems when they have to scroll up and down the page to figure out which column is which.OK, I understand now. But perhaps it is simpler to "play" with the layout via a simple shell-script (not that I recommend doing shell scripts for performance critical stuff - far from) to get the design/layout right it is a useful prototype.
Thinking about this a bit more, it occurred to me that the current
"hobbit-statusreport" CGI could easily be tweaked to support this.
If you grab the latest snapshot, build it and copy the
web/hobbit-statusreport.cgi file to your ~hobbit/server/bin/ directory.
Then create this wrapper in your Hobbit cgi-bin directory:
#!/bin/sh
. /usr/lib/hobbit/server/etc/hobbitcgi.cfg
exec /usr/lib/hobbit/server/bin/hobbit-statusreport.cgi \
--filter="color=red,yellow" --all \
--heading="All non-green systems" \
--show-column \
--show-summary \
--link
Running this CGI script will produce a text-only report of the current
non-green statuses. The "--show-summary" option causes the report to have
just a stripped-down summary of the current status, if you want the full
status text just remove that option.
Regards,
Henrik
Attachments (1)
list Thomas Seglard
Thanks for your help ! It works now... But I got another problem ! I defined a host to appear twice on my defaut pageset, one time on page A and one time on page B. So, I used the 'noconn' directive in the bb-hosts to achieve this. Then, I would like this host to appear on my new pageset. I add MYPAGESET:mypage on the first host's line. The question is why this host appears twice on the second pageset ? My bb-hosts : [top of bb-hosts] PILOTEpage cnpnet CNPNETMUT pilotegroup <font size="+1">AIX</font> pilotegroup <font size="+1">HP-UX</font> pilotegroup <font size="+1">Linux</font> pilotegroup <font size="+1">Solaris</font> [snip] xxx.xxx.xxx.xxx psp142 # COMMENT:"HP-UX 11i" PILOTE:cnpnet,2 BBDISPLAY BBPAGER BBNET ssh noinfo [snip] page superdome Superdome group <font size="+1">HP-UX</font> xxx.xxx.xxx.xxx psp142 # noconn and the result on the second pageset (the default one is good) HP-UX psp142(HP-UX 11i) test1 test2... psp142(HP-UX 11i) test1 test2... Once again, thanks for your help ! Best regards, Thomas "Larry Barber" <user-6ef9c2864140@xymon.invalid> a écrit sur 23/05/2006 18:15:44 :
▸
It's quite easy using alternate pagesets and the Apache security apparatus. Just create the pageset, put the servers you want in the pageset using the pageset tags, let Hobbit create the directories for the pageset (you will need to create the top directory in the set for some reason), then place .htaccess files in each directory of the pageset. I've created several different pagesets for different customers this way. Thanks, Larry Barber
On 5/23/06, user-bb3e9041f07f@xymon.invalid < user-bb3e9041f07f@xymon.invalid> wrote: Hi, is it possible to create a page dedicated to some servers and give access to some people/clients. Thus, I don't want these people/clients to be able to see or browse the other pages into Hobbit. Thanks for your answer(s) ! Regards, Thomas Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite au titre de ce message, s'il a ete altere, deforme ou falsifie. ***** This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite au titre de ce message, s'il a ete altere, deforme ou falsifie. ***** This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
list Dominique Frise
▸
user-bb3e9041f07f@xymon.invalid wrote:
Thanks for your help ! It works now... But I got another problem ! I defined a host to appear twice on my defaut pageset, one time on page A and one time on page B. So, I used the 'noconn' directive in the bb-hosts to achieve this. Then, I would like this host to appear on my new pageset. I add MYPAGESET:mypage on the first host's line. The question is why this host appears twice on the second pageset ? My bb-hosts : [top of bb-hosts] PILOTEpage cnpnet CNPNETMUT pilotegroup <font size="+1">AIX</font> pilotegroup <font size="+1">HP-UX</font> pilotegroup <font size="+1">Linux</font> pilotegroup <font size="+1">Solaris</font> [snip] xxx.xxx.xxx.xxx psp142 # COMMENT:"HP-UX 11i" PILOTE:cnpnet,2 BBDISPLAY BBPAGER BBNET ssh noinfo [snip] page superdome Superdome group <font size="+1">HP-UX</font> xxx.xxx.xxx.xxx psp142 # noconn and the result on the second pageset (the default one is good) HP-UX psp142(HP-UX 11i) test1 test2... psp142(HP-UX 11i) test1 test2... Once again, thanks for your help ! Best regards, Thomas "Larry Barber" <user-6ef9c2864140@xymon.invalid> a écrit sur 23/05/2006 18:15:44 :It's quite easy using alternate pagesets and the Apache security apparatus. Just create the pageset, put the servers you want in the pageset using the pageset tags, let Hobbit create the directories for the pageset (you will need to create the top directory in the set for some reason), then place .htaccess files in each directory of the pageset. I've created several different pagesets for different customers this way. Thanks, Larry BarberOn 5/23/06, user-bb3e9041f07f@xymon.invalid < user-bb3e9041f07f@xymon.invalid>wrote:Hi, is it possible to create a page dedicated to some servers and giveaccessto some people/clients. Thus, I don't want these people/clients to beableto see or browse the other pages into Hobbit. Thanks for your answer(s) ! Regards, Thomas Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite au titre de ce message, s'il a ete altere, deforme ou falsifie. ***** This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite au titre de ce message, s'il a ete altere, deforme ou falsifie. ***** This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
We have same issue. We posted a mail concerning this on 24 mai (Subject: pageset and multiple host definition) and got feedback from Larry Barber who had same problem as well. I haven't read any confirmation from Henrik if this has been now fixed. Dominique UNIL - University of Lausanne
list Henrik Størner
▸
On Mon, May 29, 2006 at 11:40:10AM +0200, user-bb3e9041f07f@xymon.invalid wrote:
But I got another problem ! I defined a host to appear twice on my defaut pageset, one time on page A and one time on page B. So, I used the 'noconn' directive in the bb-hosts to achieve this. Then, I would like this host to appear on my new pageset. I add MYPAGESET:mypage on the first host's line. The question is why this host appears twice on the second pageset ?
This patch should fix it. It isn't pretty, but it should work. Regards, Henrik -------------- next part -------------- --- bbdisplay/loadbbhosts.c 2006/05/03 21:12:33 1.43 +++ bbdisplay/loadbbhosts.c 2006/05/29 15:33:35 @@ -10,7 +10,7 @@ /* */ /*----------------------------------------------------------------------------*/ -static char rcsid[] = "$Id: loadbbhosts.c,v 1.43 2006/05/03 21:12:33 henrik Exp $"; +static char rcsid[] = "$Id: loadbbhosts.c,v 1.44 2006/05/29 15:33:19 henrik Exp $"; #include <limits.h> #include <stdio.h> @@ -654,6 +654,24 @@ } while (cwalk && (strcmp(cwalk->bbhostname, bbhost->bbhostname) == 0) && (targetpagecount < MAX_TARGETPAGES_PER_HOST) ); • + /* + * HACK: Check if the pageset tag is present at all in the host + * entry. If it isn't, then drop this incarnation of the host. + * + * Without this, the following bb-hosts file will have the + * www.hswn.dk host listed twice on the alternate pageset: + * + * adminpage nyc NYC + * + * 127.0.0.1 localhost # bbd http://localhost/ CLIENT:osiris + * 172.16.10.2 www.hswn.dk # http://www.hswn.dk/ ADMIN:nyc ssh noinfo + * + * page superdome Superdome + * 172.16.10.2 www.hswn.dk # noconn + * + */ + if (strstr(STRBUF(inbuf), hosttag) == NULL) targetpagecount = 0; } if (strlen(pgset) == 0) {
list Thomas Seglard
Thanks for your help ! But I got this output when patching : [hobbit at psi200 hobbit-4.1.2p1]$ patch -p0 </tmp/doublehost.patch (Stripping trailing CRs from patch.) patching file bbdisplay/loadbbhosts.c Hunk #1 FAILED at 10. Hunk #2 succeeded at 659 (offset 5 lines). 1 out of 2 hunks FAILED -- saving rejects to file bbdisplay/loadbbhosts.c.rej and I can't compile the sources anymore : [snip] gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DLINUX -I. -I/home/hobbit/hobbit-4.1.2p1/include -I/usr/include/pcre -c -o csvreport.o csvreport.c gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DLINUX -I. -I/home/hobbit/hobbit-4.1.2p1/include -I/usr/include/pcre -o bbgen bbgen.o loadbbhosts.o loaddata.o reportdata.o bbconvert.o pagegen.o eventlog.o acklog.o process.o wmlgen.o rssgen.o bb-replog.o util.o debug.o csvreport.o ../lib/libbbgen.a -L/usr/lib -lpcre loadbbhosts.o(.text+0x1655): In function `load_bbhosts': /home/hobbit/hobbit-4.1.2p1/bbdisplay/loadbbhosts.c:679: undefined reference to `STRBUF' collect2: ld a retourné 1 code d'état d'exécution make[1]: *** [bbgen] Erreur 1 make[1]: Leaving directory `/home/hobbit/hobbit-4.1.2p1/bbdisplay' make: *** [bbdisplay-build] Erreur 2 Am I doing something wrong ? I'm trying to patch Hobbit 4.1.2p1 on a Centos (Redhat) release 4.2. Best regards, Thomas user-ce4a2c883f75@xymon.invalid (Henrik Stoerner) a écrit sur 29/05/2006 17:35:07 :
▸
On Mon, May 29, 2006 at 11:40:10AM +0200, user-bb3e9041f07f@xymon.invalid wrote:But I got another problem ! I defined a host to appear twice on my defaut pageset, one time on page A and one time on page B. So, I used the > 'noconn' directive in the bb-hosts to achieve this. Then, I would like > this host to appear on my new pageset. I add MYPAGESET:mypage on the first host's line. > > The question is why this host appears twice on the second pageset ?This patch should fix it. It isn't pretty, but it should work. Regards, Henrik
[rattachement "doublehost.patch" supprimé par Thomas SEGLARD/FI6/ANFI/CNP Assurances] To unsubscribe from the hobbit list, send an e-mail to
user-095ef1c764a2@xymon.invalid▸
Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite au titre de ce message, s'il a ete altere, deforme ou falsifie. ***** This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
list Dominique Frise
▸
Henrik Stoerner wrote:
On Mon, May 29, 2006 at 11:40:10AM +0200, user-bb3e9041f07f@xymon.invalid wrote:But I got another problem ! I defined a host to appear twice on my defaut pageset, one time on page A and one time on page B. So, I used the 'noconn' directive in the bb-hosts to achieve this. Then, I would like this host to appear on my new pageset. I add MYPAGESET:mypage on the first host's line. The question is why this host appears twice on the second pageset ?This patch should fix it. It isn't pretty, but it should work. Regards, Henrik --- bbdisplay/loadbbhosts.c 2006/05/03 21:12:33 1.43 +++ bbdisplay/loadbbhosts.c 2006/05/29 15:33:35 @@ -10,7 +10,7 @@ /* */ /*----------------------------------------------------------------------------*/ -static char rcsid[] = "$Id: loadbbhosts.c,v 1.43 2006/05/03 21:12:33 henrik Exp $"; +static char rcsid[] = "$Id: loadbbhosts.c,v 1.44 2006/05/29 15:33:19 henrik Exp $"; #include <limits.h> #include <stdio.h> @@ -654,6 +654,24 @@ } while (cwalk && (strcmp(cwalk->bbhostname, bbhost->bbhostname) == 0) && (targetpagecount < MAX_TARGETPAGES_PER_HOST) ); • + /* + * HACK: Check if the pageset tag is present at all in the host + * entry. If it isn't, then drop this incarnation of the host. + * + * Without this, the following bb-hosts file will have the + * www.hswn.dk host listed twice on the alternate pageset: + * + * adminpage nyc NYC + * + * 127.0.0.1 localhost # bbd http://localhost/ CLIENT:osiris + * 172.16.10.2 www.hswn.dk # http://www.hswn.dk/ ADMIN:nyc ssh noinfo + * + * page superdome Superdome + * 172.16.10.2 www.hswn.dk # noconn + * + */ + if (strstr(STRBUF(inbuf), hosttag) == NULL) targetpagecount = 0; } if (strlen(pgset) == 0) {
This DOES fix it for us :-) Thanks Henrik. Dominique UNIL - University of Lausanne
list Henrik Størner
▸
On Mon, May 29, 2006 at 07:16:12PM +0200, user-bb3e9041f07f@xymon.invalid wrote:
Thanks for your help ! But I got this output when patching : [hobbit at psi200 hobbit-4.1.2p1]$ patch -p0 </tmp/doublehost.patch (Stripping trailing CRs from patch.) patching file bbdisplay/loadbbhosts.c
Ah - the patch I sent out is for the 4.2 snapshots currently available. This one should work for 4.1.2p1 Henrik -------------- next part -------------- --- bbdisplay/loadbbhosts.c.orig 2006-05-29 21:56:26.137663052 +0200 +++ bbdisplay/loadbbhosts.c 2006-05-29 21:57:52.147964710 +0200 @@ -659,6 +659,24 @@
▸
} while (cwalk && (strcmp(cwalk->bbhostname, bbhost->bbhostname) == 0) && (targetpagecount < MAX_TARGETPAGES_PER_HOST) ); • + /* + * HACK: Check if the pageset tag is present at all in the host + * entry. If it isn't, then drop this incarnation of the host. + * + * Without this, the following bb-hosts file will have the + * www.hswn.dk host listed twice on the alternate pageset: + * + * adminpage nyc NYC + * + * 127.0.0.1 localhost # bbd http://localhost/ CLIENT:osiris + * 172.16.10.2 www.hswn.dk # http://www.hswn.dk/ ADMIN:nyc ssh noinfo + * + * page superdome Superdome + * 172.16.10.2 www.hswn.dk # noconn + * + */
+ if (strstr(inbuf, hosttag) == NULL) targetpagecount = 0;
}
if (strlen(pgset) == 0) {
list Thomas Seglard
It works GREAT ! Thank you very much, Henrik, for help and code... Best regards, Thomas user-ce4a2c883f75@xymon.invalid (Henrik Stoerner) a écrit sur 29/05/2006 21:59:09 :
▸
On Mon, May 29, 2006 at 07:16:12PM +0200, user-bb3e9041f07f@xymon.invalid wrote:Thanks for your help ! But I got this output when patching :[hobbit at psi200 hobbit-4.1.2p1]$ patch -p0 </tmp/doublehost.patch > (Stripping trailing CRs from patch.) patching file bbdisplay/loadbbhosts.cAh - the patch I sent out is for the 4.2 snapshots currently available. This one should work for 4.1.2p1 Henrik
[rattachement "hobbit-4.1.2p1-doublehost.patch" supprimé par Thomas SEGLARD/FI6/ANFI/CNP Assurances] To unsubscribe from the hobbit list, send an e-mail to
▸
user-095ef1c764a2@xymon.invalidCe message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite au titre de ce message, s'il a ete altere, deforme ou falsifie. ***** This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
list Thomas Seglard
Hi, thanks for your support. With your help (a patch and the manpages !), alternate pagesets perfectly work. It's just weird that you have to create, by hands, the top directory ! Sincerly,
▸
Thomas
"Larry Barber" <user-6ef9c2864140@xymon.invalid> a écrit sur 23/05/2006 18:15:44 :
It's quite easy using alternate pagesets and the Apache security apparatus. Just create the pageset, put the servers you want in the pageset using the pageset tags, let Hobbit create the directories for the pageset (you will need to create the top directory in the set for some reason), then place .htaccess files in each directory of the pageset. I've created several different pagesets for different customers this way. Thanks, Larry Barber
On 5/23/06, user-bb3e9041f07f@xymon.invalid < user-bb3e9041f07f@xymon.invalid> wrote: Hi, is it possible to create a page dedicated to some servers and give access to some people/clients. Thus, I don't want these people/clients to be able to see or browse the other pages into Hobbit. Thanks for your answer(s) ! Regards, Thomas Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite au titre de ce message, s'il a ete altere, deforme ou falsifie. ***** This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite au titre de ce message, s'il a ete altere, deforme ou falsifie. ***** This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
list Dominique Frise
▸
Dominique Frise wrote:
Henrik Stoerner wrote:On Mon, May 29, 2006 at 11:40:10AM +0200, user-bb3e9041f07f@xymon.invalid wrote:But I got another problem ! I defined a host to appear twice on my defaut pageset, one time on page A and one time on page B. So, I used the 'noconn' directive in the bb-hosts to achieve this. Then, I would like this host to appear on my new pageset. I add MYPAGESET:mypage on the first host's line. The question is why this host appears twice on the second pageset ?This patch should fix it. It isn't pretty, but it should work. Regards, Henrik --- bbdisplay/loadbbhosts.c 2006/05/03 21:12:33 1.43 +++ bbdisplay/loadbbhosts.c 2006/05/29 15:33:35 @@ -10,7 +10,7 @@ /* */ /*----------------------------------------------------------------------------*/ -static char rcsid[] = "$Id: loadbbhosts.c,v 1.43 2006/05/03 21:12:33 henrik Exp $"; +static char rcsid[] = "$Id: loadbbhosts.c,v 1.44 2006/05/29 15:33:19 henrik Exp $"; #include <limits.h> #include <stdio.h> @@ -654,6 +654,24 @@ } while (cwalk && (strcmp(cwalk->bbhostname, bbhost->bbhostname) == 0) && (targetpagecount < MAX_TARGETPAGES_PER_HOST) ); • + /* + * HACK: Check if the pageset tag is present at all in the host + * entry. If it isn't, then drop this incarnation of the host. + * + * Without this, the following bb-hosts file will have the + * www.hswn.dk host listed twice on the alternate pageset: + * + * adminpage nyc NYC + * + * 127.0.0.1 localhost # bbd http://localhost/ CLIENT:osiris + * 172.16.10.2 www.hswn.dk # http://www.hswn.dk/ ADMIN:nyc ssh noinfo + * + * page superdome Superdome + * 172.16.10.2 www.hswn.dk # noconn + * + */ + if (strstr(STRBUF(inbuf), hosttag) == NULL) targetpagecount = 0; } if (strlen(pgset) == 0) {This DOES fix it for us :-) Thanks Henrik. Dominique UNIL - University of Lausanne
Henrik, I think the fix does not cover the case where the same host should appear on different pages of an alternate pageset. We have such cases where a given host handles different services that should be grouped logically on different pages (Databases, Directories, File Sharing, Mail). In following example, www.hswn.dk will appear twice on nyc.html and lau.html. adminpage nyc NYC acadpage lau LAU
▸
127.0.0.1 localhost # bbd http://localhost/ CLIENT:osiris 172.16.10.2 www.hswn.dk # http://www.hswn.dk/ ADMIN:nyc ssh noinfo page superdome Superdome
172.16.10.2 www.hswn.dk # noconn ACAD:lau
Dominique
UNIL - University of Lausanne
list Dominique Frise
▸
Dominique Frise wrote:
Dominique Frise wrote:Henrik Stoerner wrote:On Mon, May 29, 2006 at 11:40:10AM +0200, user-bb3e9041f07f@xymon.invalid wrote:But I got another problem ! I defined a host to appear twice on my defaut pageset, one time on page A and one time on page B. So, I used the 'noconn' directive in the bb-hosts to achieve this. Then, I would like this host to appear on my new pageset. I add MYPAGESET:mypage on the first host's line. The question is why this host appears twice on the second pageset ?This patch should fix it. It isn't pretty, but it should work. Regards, Henrik --- bbdisplay/loadbbhosts.c 2006/05/03 21:12:33 1.43 +++ bbdisplay/loadbbhosts.c 2006/05/29 15:33:35 @@ -10,7 +10,7 @@ /* */ /*----------------------------------------------------------------------------*/ -static char rcsid[] = "$Id: loadbbhosts.c,v 1.43 2006/05/03 21:12:33 henrik Exp $"; +static char rcsid[] = "$Id: loadbbhosts.c,v 1.44 2006/05/29 15:33:19 henrik Exp $"; #include <limits.h> #include <stdio.h> @@ -654,6 +654,24 @@ } while (cwalk && (strcmp(cwalk->bbhostname, bbhost->bbhostname) == 0) && (targetpagecount < MAX_TARGETPAGES_PER_HOST) ); • + /* + * HACK: Check if the pageset tag is present at all in the host + * entry. If it isn't, then drop this incarnation of the host. + * + * Without this, the following bb-hosts file will have the + * www.hswn.dk host listed twice on the alternate pageset: + * + * adminpage nyc NYC + * + * 127.0.0.1 localhost # bbd http://localhost/ CLIENT:osiris + * 172.16.10.2 www.hswn.dk # http://www.hswn.dk/ ADMIN:nyc ssh noinfo + * + * page superdome Superdome + * 172.16.10.2 www.hswn.dk # noconn + * + */ + if (strstr(STRBUF(inbuf), hosttag) == NULL) targetpagecount = 0; } if (strlen(pgset) == 0) {This DOES fix it for us :-) Thanks Henrik. Dominique UNIL - University of LausanneHenrik, I think the fix does not cover the case where the same host should appear on different pages of an alternate pageset. We have such cases where a given host handles different services that should be grouped logically on different pages (Databases, Directories, File Sharing, Mail). In following example, www.hswn.dk will appear twice on nyc.html and lau.html. adminpage nyc NYC acadpage lau LAU 127.0.0.1 localhost # bbd http://localhost/ CLIENT:osiris 172.16.10.2 www.hswn.dk # http://www.hswn.dk/ ADMIN:nyc ssh noinfo page superdome Superdome 172.16.10.2 www.hswn.dk # noconn ACAD:lau Dominique UNIL - University of Lausanne
Sorry for the wrong pageset name in the example (acad). It should be: adminpage nyc NYC adminpage lau LAU
▸
127.0.0.1 localhost # bbd http://localhost/ CLIENT:osiris 172.16.10.2 www.hswn.dk # http://www.hswn.dk/ ADMIN:nyc ssh noinfo page superdome Superdome
172.16.10.2 www.hswn.dk # noconn ADMIN:lau
Dominique
UNIL - University of Lausanne
list Henrik Størner
▸
On Tue, May 30, 2006 at 12:07:13PM +0200, Dominique Frise wrote:
Dominique Frise wrote:This patch should fix it. It isn't pretty, but it should work.I think the fix does not cover the case where the same host should appear on different pages of an alternate pageset. We have such cases where a given host handles different services that should be grouped logically on different pages (Databases, Directories, File Sharing, Mail).
I'm sorry, but I don't see how that can be handled correctly with the way the alternate pagesets are currently built. I've said on a number of occasions that the alternate pageset handling needs some serious work; the current setup is just too inflexible and error-prone. So right now I'll consider this a bug, but one that will not be fixed for the moment. Regards, Henrik
list Dominique Frise
▸
Henrik Stoerner wrote:
On Tue, May 30, 2006 at 12:07:13PM +0200, Dominique Frise wrote:Dominique Frise wrote:This patch should fix it. It isn't pretty, but it should work.I think the fix does not cover the case where the same host should appear on different pages of an alternate pageset. We have such cases where a given host handles different services that should be grouped logically on different pages (Databases, Directories, File Sharing, Mail).I'm sorry, but I don't see how that can be handled correctly with the way the alternate pagesets are currently built. I've said on a number of occasions that the alternate pageset handling needs some serious work; the current setup is just too inflexible and error-prone. So right now I'll consider this a bug, but one that will not be fixed for the moment.
OK. We needed this feature to create summary page set for the management and helpdesk. In the meantime I think we could use bbgen on alternate bb-hosts files. We'll give it a try. Thanks. Dominique UNIL - University of Lausanne