"Pages Hosted Locally"
Is there an easy way to change the phrases at the top of the main screens "Pages Hosted Locally" and "Subpages Hosted Locally"
I would like to add the word "TEST" or "PROD" to the beginning to show they are on the Testing or Production system.
Is there a way without having to re-compile the system?
Thanks,
Tom Schmitt
Senior IT Staff - R&D
Pages hosted locally is just a heading for all pages hosted, well, locally, however you can name the page.
In here for example you have 4 different pages, all with different names
so generally here would not be a necesity to change the text. I am guessing that you only have 1 page.
If you still want to change it, you need to edit the name in line 46 of bb.html located at /var/lib/hobbit/www (at least in my build)
From: d.tom.schmitt at L-3com.com [mailto:d.tom.schmitt at L-3com.com] Sent: Monday, September 28, 2009 3:19 PM To: hobbit at hswn.dk Subject: [hobbit] "Pages Hosted Locally"
Is there an easy way to change the phrases at the top of the main screens "Pages Hosted Locally" and "Subpages Hosted Locally"
I would like to add the word "TEST" or "PROD" to the beginning to show they are on the Testing or Production system.
Is there a way without having to re-compile the system?
Thanks,
Tom Schmitt
Senior IT Staff - R&D
Sorry, scratch last what I said.
The bb.html page is generated by hobbit on each build (usually every 5 minutes)
The page is built using the code in
/etc/hobbit/web
Bb_footer and BB_header configure the footer and header respectively, so I suspect that the layout for the main page should be there as well, but I can't find it. Maybe is part of another file...
Sorry, not much help
From: David Hay Currie [mailto:dhaycurrie at leisurefitness.com] Sent: Monday, September 28, 2009 4:50 PM To: hobbit at hswn.dk Subject: RE: [hobbit] "Pages Hosted Locally"
Pages hosted locally is just a heading for all pages hosted, well, locally, however you can name the page.
In here for example you have 4 different pages, all with different names
so generally here would not be a necesity to change the text. I am guessing that you only have 1 page.
If you still want to change it, you need to edit the name in line 46 of bb.html located at /var/lib/hobbit/www (at least in my build)
From: d.tom.schmitt at L-3com.com [mailto:d.tom.schmitt at L-3com.com] Sent: Monday, September 28, 2009 3:19 PM To: hobbit at hswn.dk Subject: [hobbit] "Pages Hosted Locally"
Is there an easy way to change the phrases at the top of the main screens "Pages Hosted Locally" and "Subpages Hosted Locally"
I would like to add the word "TEST" or "PROD" to the beginning to show they are on the Testing or Production system.
Is there a way without having to re-compile the system?
Thanks,
Tom Schmitt
Senior IT Staff - R&D
Thanks for pointing me in the correct direction.
I first change the location in bb.html and that did it as you said until the 5 minutes expired and it was rebuilt.
I search for a file with the "Pages Hosted Locally" and found: cd /home/Xymon/server/etc vi hobbitserver.cfg
Edit the lines starting with: MKBBLOCAL= and
MKBBSUBLOCAL=
Then the next time it runs, the titles have changed.
Thanks again for the quick assist! Tom
-----Original Message----- From: David Hay Currie [mailto:dhaycurrie at leisurefitness.com] Sent: Monday, September 28, 2009 3:18 PM To: hobbit at hswn.dk Subject: RE: [hobbit] "Pages Hosted Locally"
Sorry, scratch last what I said.
The bb.html page is generated by hobbit on each build (usually every 5 minutes)
The page is built using the code in
/etc/hobbit/web
Bb_footer and BB_header configure the footer and header respectively, so I suspect that the layout for the main page should be there as well, but I can't find it. Maybe is part of another file...
Sorry, not much help
From: David Hay Currie [mailto:dhaycurrie at leisurefitness.com] Sent: Monday, September 28, 2009 4:50 PM To: hobbit at hswn.dk Subject: RE: [hobbit] "Pages Hosted Locally"
Pages hosted locally is just a heading for all pages hosted, well, locally, however you can name the page.
In here for example you have 4 different pages, all with different names
so generally here would not be a necesity to change the text. I am guessing that you only have 1 page.
If you still want to change it, you need to edit the name in line 46 of bb.html located at /var/lib/hobbit/www (at least in my build)
From: d.tom.schmitt at L-3com.com [mailto:d.tom.schmitt at L-3com.com] Sent: Monday, September 28, 2009 3:19 PM To: hobbit at hswn.dk Subject: [hobbit] "Pages Hosted Locally"
Is there an easy way to change the phrases at the top of the main screens "Pages Hosted Locally" and "Subpages Hosted Locally"
I would like to add the word "TEST" or "PROD" to the beginning to show they are on the Testing or Production system.
Is there a way without having to re-compile the system?
Thanks,
Tom Schmitt
Senior IT Staff - R&D
No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.113/2400 - Release Date: 09/28/09 05:51:00
Read the bbgen man page there is an option to change what is displayed. I think I also remmebr somewhere I saw a file you could change to have that string, in place of "pages hosted locally", but I don't remember where I saw it.
.......Bruce
Bruce White Senior Enterprise Systems Engineer | Phone: 630-671-5169 | Fax: 630-893-1648 | bewhite at fellowes.com | http://www.fellowes.com/
Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.
From: d.tom.schmitt at L-3com.com [mailto:d.tom.schmitt at L-3com.com] Sent: Monday, September 28, 2009 2:19 PM To: hobbit at hswn.dk Subject: [hobbit] "Pages Hosted Locally"
Is there an easy way to change the phrases at the top of the main screens "Pages Hosted Locally" and "Subpages Hosted Locally"
I would like to add the word "TEST" or "PROD" to the beginning to show they are on the Testing or Production system.
Is there a way without having to re-compile the system?
Thanks,
Tom Schmitt
Senior IT Staff - R&D
All,
We are in the process of going from Hobbit 4.2.0 to Xymon 4.3.0-0.beta2.
We originally set up the timeframes for the rrd files as such on the new Xymon server.
/* Check if the default record exists */
if (rbtFind(rrddeftree, "") == rbtEnd(rrddeftree)) {
/* Create the default record */
newrec = (rrddeftree_t *)malloc(sizeof(rrddeftree_t));
newrec->key = strdup("");
newrec->defs = (char **)malloc(4 * sizeof(char *));;
newrec->defs[0] = strdup("RRA:AVERAGE:0.5:1:157824");
newrec->defs[1] = strdup("RRA:AVERAGE:0.5:6:157824");
newrec->defs[2] = strdup("RRA:AVERAGE:0.5:24:157824");
newrec->defs[3] = strdup("RRA:AVERAGE:0.5:288:157824");
newrec->count = 4;
rbtInsert(rrddeftree, newrec->key, newrec);
The belief was that we would be able to keep 5 minute increments of data out to 576 days. Now because of the amount of space required, that have asked to keep the 576 day average to 30 minutes instead of the 5 minutes and keep the 2, 12 and 48 days at 5 minutes. As I will not have time to make sure that long of time is correct, so I need some other eyes to tell me if my calculations are correct.
I am planning on taking newrec->defs[3] = strdup("RRA:AVERAGE:0.5:288:157824"); and changing 157824 to 82944.
Am I correct in my calculation for the 576 day average for 30 minutes or am I totally off base?
We are keeping the original Hobbit server for historical review and I don't have to worry about converting any rrd files. And because we are in test, I can simple blow away the new rrd files on Xymon.
All comments will be appreciated!
Thank you,
Tom
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Please do not thread hijack.
=R
Stewart, Tom L. wrote:
All,
We are in the process of going from Hobbit 4.2.0 to Xymon 4.3.0-0.beta2.
We originally set up the timeframes for the rrd files as such on the new Xymon server.
/* Check if the default record exists */ if (rbtFind(rrddeftree, "") == rbtEnd(rrddeftree)) { /* Create the default record */ newrec = (rrddeftree_t *)malloc(sizeof(rrddeftree_t)); newrec->key = strdup(""); newrec->defs = (char **)malloc(4 * sizeof(char *));; newrec->defs[0] = strdup("RRA:AVERAGE:0.5:1:157824"); newrec->defs[1] = strdup("RRA:AVERAGE:0.5:6:157824"); newrec->defs[2] = strdup("RRA:AVERAGE:0.5:24:157824"); newrec->defs[3] = strdup("RRA:AVERAGE:0.5:288:157824"); newrec->count = 4; rbtInsert(rrddeftree, newrec->key, newrec);The belief was that we would be able to keep 5 minute increments of data out to 576 days. Now because of the amount of space required, that have asked to keep the 576 day average to 30 minutes instead of the 5 minutes and keep the 2, 12 and 48 days at 5 minutes. As I will not have time to make sure that long of time is correct, so I need some other eyes to tell me if my calculations are correct.
I am planning on taking newrec->defs[3] = strdup("RRA:AVERAGE:0.5:288:157824"); and changing 157824 to 82944.
Am I correct in my calculation for the 576 day average for 30 minutes or am I totally off base?
We are keeping the original Hobbit server for historical review and I don’t have to worry about converting any rrd files. And because we are in test, I can simple blow away the new rrd files on Xymon.
All comments will be appreciated!
Thank you,
Tom
---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$&| |__| | | |__/ | \| _| |novosirj at umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/CST - NJMS Medical Science Bldg - C630 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkrDb/MACgkQmb+gadEcsb4gkwCbBvavbkjsJzicvU09vYApAakb 5gsAn3O0AS52vvo3flH0LioTBZ3CAsfl =e9on -----END PGP SIGNATURE-----
d.tom.schmitt at L-3com.com wrote:
Is there an easy way to change the phrases at the top of the main screens "Pages Hosted Locally" and "Subpages Hosted Locally"
Yes
I would like to add the word "TEST" or "PROD" to the beginning to show they are on the Testing or Production system.
Look for these tag's in hobbitserver.cfg
MKBBLOCAL="<B><I>TEST</I></B>" MKBBREMOTE="<B><I></I></B>" MKBBSUBLOCAL="<B><I>PROD</I></B>"
I have removed the original values and given examples. As you can see you can use html within them as well
You should then only have to wait until the status display is refreshed. No restart needed.
Cheers
Iain
Is there a way without having to re-compile the system?
Thanks,
Tom Schmitt
Senior IT Staff - R&D
participants (6)
-
bewhite@fellowes.com
-
d.tom.schmitt@L-3com.com
-
dhaycurrie@leisurefitness.com
-
iain@shihad.org
-
novosirj@umdnj.edu
-
Tom.Stewart@landsend.com