exclude info and trends columns from NK page
Please let me know how to exclude "info" and "trends" columns from the NK overview page.
I'm using Hobbit Monitor 4.1.2 and my bb-hosts is as follows. 192.168.1.100 internal.domain.com # http://internal.domain.com NK:http
When http tests fails, this hostname surely appears on the NK page, but it is with "info" and "trends" colomns even though I specify only http with NK option in bb-hosts.
On Wed, Nov 09, 2005 at 03:29:53PM +0900, Takeshi Nishioka wrote:
Please let me know how to exclude "info" and "trends" columns from the NK overview page.
It is currently hard-coded that the "info" and "trends" columns show up on all pages, including the NK and BB2 pages.
I am currently working on an improved version of the NK page - the guys at work have asked for a lot of improvements - and there you can configure it. But right now, if you want those columns removed you'll have to edit the Hobbit source-code.
The change is pretty simple. In the hobbit-4.1.2/bbdisplay/pagegen.c file, lines 121-123 look like this:
/* TRENDS and INFO columns are always included on non-BB pages */
if (strcmp(column->name, xgetenv("INFOCOLUMN")) == 0) return 1;
if (strcmp(column->name, xgetenv("TRENDSCOLUMN")) == 0) return 1;
Change the "return 1" on both lines to "return 0", save the file, run "make" and either run "make install", or copy the bbdisplay/bbgen program to ~hobbit/server/bin/ . Next time the NK page is updated, those columns will be gone.
Regards, Henrik
Your advice fulfilled my request perfectly!! Thank you very much, Mr.Henrik.
Would you mind if I ask the way how to delete a hyperlink to a host on NK overview page. In my case, I would like to delete a hypelink created againt internal.domain.com to link Main Page.
Thanks, Takeshi Nishioka
participants (2)
-
henrik@hswn.dk
-
nishioka@rightnow.ne.jp