Xymon Mailing List Archive search

remove columns on the bb2.html page

list Henrik Størner
Fri, 10 Oct 2008 08:54:18 +0000 (UTC)
Message-Id: <gcn57q$hvj$user-0592e4326c92@xymon.invalid>

In <user-294bd3621fff@xymon.invalid> <user-72e95584e49c@xymon.invalid> writes:
The "group-only" does normally work ... but not for the "All non-green view=
"(bb2.hmtl) ... there is a -bb2-ignorecolumns directive which works fine fo=
r all columns except the two I want to exclude :)
The "info" and "trends" columns are really hard-coded into the 
web display.

You have the source, so you can hack it. In bbdisplay/pagegen.c
you'll find these lines:

   /* 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;

Just change the "return 1" to "return 0", run "make" and copy
the bbdisplay/bbgen binary to your ~hobbit/server/bin/ directory.


Regards,
Henrik