Xymon Mailing List Archive search

How to disable standard columns?

9 messages in this thread

list Cayo de Moraes · Tue, 16 Jun 2009 09:01:23 +0200 ·
Hi guys,

I want to disable some standard columns (files and ports) but every time I
remove these colomns, they come back with the next check.


I dont know if its the right way to disable the "ports" column, but I
uncommented these lines in hobbitclient-aix.sh and its disabled now:

#echo "[ports]"
#netstat -an | grep "^tcp"


For the "files" column I couldnt find anything to uncomment. Does someone
know how to disable it?


TIA,
Cayo
list Wouter Schoot · Tue, 16 Jun 2009 09:11:16 +0200 ·
quoted from Cayo de Moraes
Cayo de Moraes wrote:
I want to disable some standard columns (files and ports) but every time 
I remove these colomns, they come back with the next check.
Did you drop those AND removed them from the config?

You could also define a default setting in bb-hosts like:
0.0.0.0         .default.                       # NOCOLUMNS:ports
list Cayo de Moraes · Tue, 16 Jun 2009 10:09:46 +0200 ·
Hi Wouter,

thx for the help! Now yes! I did remove them from the config (for 2 hosts
only) and droped again, but it comes back after 1 minute with the status
"clear".


I never saw this default before... does this remove the "ports" column from
all hosts?


TIA


2009/6/16 Wouter Schoot <user-845758e8652b@xymon.invalid>
quoted from Cayo de Moraes
Cayo de Moraes wrote:
I want to disable some standard columns (files and ports) but every time I
remove these colomns, they come back with the next check.
Did you drop those AND removed them from the config?

You could also define a default setting in bb-hosts like:
0.0.0.0         .default.                       # NOCOLUMNS:ports

list Wouter Schoot · Tue, 16 Jun 2009 10:45:45 +0200 ·
quoted from Cayo de Moraes
Cayo de Moraes wrote:
I never saw this default before... does this remove the "ports" column 
from all hosts?
Allow me to copy/paste from "man bb-hosts" for you:

DEFAULT HOST
        If you have certain tags that you want to apply  to  all  hosts,
        you  can define a host name ".default." and put the tags on that
        host. Note that per-host definitions will override  the  default
        ones.

        NOTE:  The ".default." host entry will only accept the following
        tags - others are silently ignored: NOCOLUMNS,  COMMENT,  DESCR,
        CLASS,  dialup, testip, nobb2, nodisp, noinfo, notrends, TRENDS,
        NOPROPRED, NOPROPYELLOW,  NOPROPPURPLE,  NOPROPACK,  REPORTTIME,
        WARNPCT,  NET,  noclear,  nosslcert, ssldays, DOWNTIME, depends,
        noping, noconn, trace,  notrace,  HIDEHTTP,  browser,  pulldata.
        Specifically,  note  that network tests, "badTEST" settings, and
        alternate pageset relations cannot be listed on the  ".default."
        host.


Wouter
list Cayo de Moraes · Tue, 16 Jun 2009 13:02:20 +0200 ·
ok, thanks for the advice. Its working now!

after reading the bb-hosts manual i noticed that the problem was here:

NOCOLUMNS:ports, files --> false
NOCOLUMNS:ports[,files] --> correct


Thanks again!
quoted from Wouter Schoot


2009/6/16 Wouter Schoot <user-845758e8652b@xymon.invalid>
Cayo de Moraes wrote:
I never saw this default before... does this remove the "ports" column
from all hosts?
Allow me to copy/paste from "man bb-hosts" for you:

DEFAULT HOST
      If you have certain tags that you want to apply  to  all  hosts,
      you  can define a host name ".default." and put the tags on that
      host. Note that per-host definitions will override  the  default
      ones.

      NOTE:  The ".default." host entry will only accept the following
      tags - others are silently ignored: NOCOLUMNS,  COMMENT,  DESCR,
      CLASS,  dialup, testip, nobb2, nodisp, noinfo, notrends, TRENDS,
      NOPROPRED, NOPROPYELLOW,  NOPROPPURPLE,  NOPROPACK,  REPORTTIME,
      WARNPCT,  NET,  noclear,  nosslcert, ssldays, DOWNTIME, depends,
      noping, noconn, trace,  notrace,  HIDEHTTP,  browser,  pulldata.
      Specifically,  note  that network tests, "badTEST" settings, and
      alternate pageset relations cannot be listed on the  ".default."
      host.


Wouter

list Cayo de Moraes · Tue, 16 Jun 2009 13:07:56 +0200 ·
no... it does not work like i tought...

it only works when i disable 1 column...


2009/6/16 Cayo de Moraes <user-92aec3b3c467@xymon.invalid>
signature
ok, thanks for the advice. Its working now!

after reading the bb-hosts manual i noticed that the problem was here:

NOCOLUMNS:ports, files --> false
NOCOLUMNS:ports[,files] --> correct


Thanks again!


2009/6/16 Wouter Schoot <user-845758e8652b@xymon.invalid>
quoted from Cayo de Moraes
Cayo de Moraes wrote:

 I never saw this default before... does this remove the "ports" column
from all hosts?
Allow me to copy/paste from "man bb-hosts" for you:

DEFAULT HOST
      If you have certain tags that you want to apply  to  all  hosts,
      you  can define a host name ".default." and put the tags on that
      host. Note that per-host definitions will override  the  default
      ones.

      NOTE:  The ".default." host entry will only accept the following
      tags - others are silently ignored: NOCOLUMNS,  COMMENT,  DESCR,
      CLASS,  dialup, testip, nobb2, nodisp, noinfo, notrends, TRENDS,
      NOPROPRED, NOPROPYELLOW,  NOPROPPURPLE,  NOPROPACK,  REPORTTIME,
      WARNPCT,  NET,  noclear,  nosslcert, ssldays, DOWNTIME, depends,
      noping, noconn, trace,  notrace,  HIDEHTTP,  browser,  pulldata.
      Specifically,  note  that network tests, "badTEST" settings, and
      alternate pageset relations cannot be listed on the  ".default."
      host.


Wouter

list Wouter Schoot · Tue, 16 Jun 2009 13:14:32 +0200 ·
quoted from Cayo de Moraes
Cayo de Moraes wrote:
no... it does not work like i tought...

it only works when i disable 1 column...
The default defined states:
0.0.0.0        .default.       # NOPROPRED:+apt,+libs NOCOLUMNS:files,ports

So, that should work. You might have to manually drop some columns after 
changing the default

Wouter
list Greg Hubbard · Tue, 16 Jun 2009 12:40:28 +0000 ·
Make sure there are no spaces in your comma-separated list. 
quoted from Wouter Schoot
-----Original Message-----
From: Wouter Schoot [mailto:user-845758e8652b@xymon.invalid] Sent: Tuesday, June 16, 2009 6:15 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] How to disable standard columns?

Cayo de Moraes wrote:
no... it does not work like i tought...

it only works when i disable 1 column...
The default defined states:
0.0.0.0        .default.       # NOPROPRED:+apt,+libs NOCOLUMNS:files,ports

So, that should work. You might have to manually drop some columns after changing the default

Wouter
list Cayo de Moraes · Wed, 17 Jun 2009 10:06:25 +0200 ·
yes!!! the whole time where an space there and I didnt noticed that! thanks
guys, now it work perfectly!

Cayo


2009/6/16 HUBBARD, GREG ((EDS)) <user-54b18961ee8d@xymon.invalid>
quoted from Greg Hubbard
Make sure there are no spaces in your comma-separated list.

-----Original Message-----
From: Wouter Schoot [mailto:user-845758e8652b@xymon.invalid]
Sent: Tuesday, June 16, 2009 6:15 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] How to disable standard columns?

Cayo de Moraes wrote:
no... it does not work like i tought...

it only works when i disable 1 column...
The default defined states:
0.0.0.0        .default.       # NOPROPRED:+apt,+libs NOCOLUMNS:files,ports

So, that should work. You might have to manually drop some columns after
changing the default

Wouter