[hobbit] Skinning BB
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:mlowery at alliedtechgroup.com <mailto:mlowery at alliedtechgroup.com> ] Sent: Tuesday, 16 May 2006 2:01 To: hobbit at hswn.dk 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:henrik at hswn.dk <mailto:henrik at hswn.dk> ] Sent: Sunday, May 14, 2006 3:17 PM To: hobbit at hswn.dk 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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:mlowery at alliedtechgroup.com <mailto:mlowery at alliedtechgroup.com> ] Sent: Tuesday, 16 May 2006 2:01 To: hobbit at hswn.dk 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:henrik at hswn.dk <mailto:henrik at hswn.dk> ] Sent: Sunday, May 14, 2006 3:17 PM To: hobbit at hswn.dk 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 webpage
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Rich Smrcina VM Assist, Inc. Main: (262)392-2026 Cell: (414)491-6001 Ans Service: (360)715-2467 rich.smrcina at vmassist.com
Catch the WAVV! http://www.wavv.org WAVV 2007 - Green Bay, WI - May 18-22, 2007
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
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
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.
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: thomas.seglard.enata at cnp.fr [mailto:thomas.seglard.enata at cnp.fr] Inviato: mer 17/05/2006 18.42 A: hobbit at hswn.dk 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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
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.
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, thomas.seglard.enata at cnp.fr <thomas.seglard.enata at cnp.fr> 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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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" <lebarber at gmail.com> 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, thomas.seglard.enata at cnp.fr < thomas.seglard.enata at cnp.fr> 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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
thomas.seglard.enata at cnp.fr 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" <lebarber at gmail.com> 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, thomas.seglard.enata at cnp.fr < thomas.seglard.enata at cnp.fr>
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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
On Mon, May 29, 2006 at 11:40:10AM +0200, thomas.seglard.enata at cnp.fr 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
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
henrik at hswn.dk (Henrik Stoerner) a écrit sur 29/05/2006 17:35:07 :
On Mon, May 29, 2006 at 11:40:10AM +0200, thomas.seglard.enata at cnp.fr 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 hobbit-unsubscribe at hswn.dk
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.
On Mon, May 29, 2006 at 07:16:12PM +0200, thomas.seglard.enata at cnp.fr 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
It works GREAT ! Thank you very much, Henrik, for help and code...
Best regards,
Thomas
henrik at hswn.dk (Henrik Stoerner) a écrit sur 29/05/2006 21:59:09 :
On Mon, May 29, 2006 at 07:16:12PM +0200, thomas.seglard.enata at cnp.fr 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
[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 hobbit-unsubscribe at hswn.dk
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.
Henrik Stoerner wrote:
On Mon, May 29, 2006 at 11:40:10AM +0200, thomas.seglard.enata at cnp.fr 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) {
------------------------------------------------------------------------
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
This DOES fix it for us :-) Thanks Henrik. Dominique UNIL - University of Lausanne
Dominique Frise wrote:
Henrik Stoerner wrote:
On Mon, May 29, 2006 at 11:40:10AM +0200, thomas.seglard.enata at cnp.fr 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) {
------------------------------------------------------------------------
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
This DOES fix it for us :-)
Thanks Henrik.
Dominique UNIL - University of Lausanne
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
Dominique Frise wrote:
Dominique Frise wrote:
Henrik Stoerner wrote:
On Mon, May 29, 2006 at 11:40:10AM +0200, thomas.seglard.enata at cnp.fr 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) {
------------------------------------------------------------------------
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
This DOES fix it for us :-)
Thanks Henrik.
Dominique UNIL - University of Lausanne
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
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" <lebarber at gmail.com> 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, thomas.seglard.enata at cnp.fr < thomas.seglard.enata at cnp.fr> 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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
participants (7)
-
Alun.Watson@fp.co.nz
-
Dominique.Frise@unil.ch
-
fduranti@q8.it
-
henrik@hswn.dk
-
lebarber@gmail.com
-
rsmrcina@wi.rr.com
-
thomas.seglard.enata@cnp.fr