Xymon Mailing List Archive search

"Pages Hosted Locally"

8 messages in this thread

list Tom Schmitt · Mon, 28 Sep 2009 13:18:57 -0600 ·
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
list David Hay Currie · Mon, 28 Sep 2009 16:49:44 -0400 ·
 

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

http://www.hswn.dk/hobbit/

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)
quoted from Tom Schmitt

 
From: user-9c1ae820b621@xymon.invalid [mailto:user-9c1ae820b621@xymon.invalid] 
Sent: Monday, September 28, 2009 3:19 PM
To: user-ae9b8668bcde@xymon.invalid
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
list David Hay Currie · Mon, 28 Sep 2009 17:17:51 -0400 ·
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
quoted from David Hay Currie

From: David Hay Currie [mailto:user-ab244b10c769@xymon.invalid] 
Sent: Monday, September 28, 2009 4:50 PM
To: user-ae9b8668bcde@xymon.invalid
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

http://www.hswn.dk/hobbit/

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: user-9c1ae820b621@xymon.invalid [mailto:user-9c1ae820b621@xymon.invalid] 
Sent: Monday, September 28, 2009 3:19 PM
To: user-ae9b8668bcde@xymon.invalid
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
list Tom Schmitt · Mon, 28 Sep 2009 15:32:52 -0600 ·
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
quoted from David Hay Currie
	

-----Original Message-----
From: David Hay Currie [mailto:user-ab244b10c769@xymon.invalid] 
Sent: Monday, September 28, 2009 3:18 PM
To: user-ae9b8668bcde@xymon.invalid
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:user-ab244b10c769@xymon.invalid] 
Sent: Monday, September 28, 2009 4:50 PM
To: user-ae9b8668bcde@xymon.invalid
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

http://www.hswn.dk/hobbit/

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: user-9c1ae820b621@xymon.invalid [mailto:user-9c1ae820b621@xymon.invalid] 
Sent: Monday, September 28, 2009 3:19 PM
To: user-ae9b8668bcde@xymon.invalid
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

 

09/28/09 05:51:00
list Bruce White · Mon, 28 Sep 2009 18:16:01 -0500 ·
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: XXX-XXX-XXXX | Fax: XXX-XXX-XXXX | user-58f975e8bf9d@xymon.invalid | 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.
quoted from Tom Schmitt
 

From: user-9c1ae820b621@xymon.invalid [mailto:user-9c1ae820b621@xymon.invalid] 
Sent: Monday, September 28, 2009 2:19 PM
To: user-ae9b8668bcde@xymon.invalid
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
list Iain M Conochie · Tue, 29 Sep 2009 10:15:58 +0100 ·
quoted from Bruce White
user-9c1ae820b621@xymon.invalid 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
quoted from Bruce White
 

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
quoted from Bruce White

Is there a way without having to re-compile the system?

 
Thanks,

 
Tom Schmitt

Senior IT Staff - R&D

 
list Tom L. Stewart · Wed, 30 Sep 2009 09:39:43 -0500 ·
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
list Ryan Novosielski · Wed, 30 Sep 2009 10:49:23 -0400 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Please do not thread hijack.

=R
quoted from Tom L. Stewart

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
 |$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 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-----