Xymon Mailing List Archive search

disk IGNORE rule in DEFAULT section

3 messages in this thread

list Gary Baluha · Thu, 29 Mar 2007 14:36:41 -0400 ·
Maybe I'm just a little sleep deprived, but I thought that if a machine had
a disk slice that didn't have
an explicit DISK <blah> line defined for it, it would use the rule as
defined in the DEFAULT section.
However, I have a bunch of machines that apparently are _not_ using the rule
as defined in the
DEFAULT section.  Below is a copy of the relevant parts of the DEFAULT
section (at the very bottom of the hobbit-clients.cfg file)

DEFAULT
   <other non-related DISK IGNORE rules>
   DISK    %^/archive[0-9]* IGNORE
   DISK    * 90 95

I know technically the "DISK *" should probably be "DISK .*", but I thought
that's how it was by default.
Am I just wrong with my PCRE?
list Charles Jones · Fri, 30 Mar 2007 11:24:02 -0700 ·
quoted from Gary Baluha
Gary Baluha wrote:
DEFAULT
   <other non-related DISK IGNORE rules>
   DISK    %^/archive[0-9]* IGNORE
   DISK    * 90 95

I know technically the "DISK *" should probably be "DISK .*", but I 
thought that's how it was by default.
Am I just wrong with my PCRE?
Try this:
DISK   %^\/archive[0-9]   IGNORE

Note that will also ignore things like /archive10, /archive30, etc. so 
if you want to ONLY ignore 0-9, you need to use this (assuming paths 
like /archiveXX):
DISK   %^\/archive[0-9]$   IGNORE

P.S. Your main problem was not escaping the /

-Charles
list Gary Baluha · Fri, 30 Mar 2007 16:37:39 -0400 ·
quoted from Charles Jones
On 3/30/07, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
Gary Baluha wrote:
DEFAULT
   <other non-related DISK IGNORE rules>
   DISK    %^/archive[0-9]* IGNORE
   DISK    * 90 95

I know technically the "DISK *" should probably be "DISK .*", but I
thought that's how it was by default.
Am I just wrong with my PCRE?
Try this:
DISK   %^\/archive[0-9]   IGNORE

Note that will also ignore things like /archive10, /archive30, etc. so
if you want to ONLY ignore 0-9, you need to use this (assuming paths
like /archiveXX):
DISK   %^\/archive[0-9]$   IGNORE

Yup, I want to ignore anything /archiveN...N


P.S. Your main problem was not escaping the /


I thought for sure I had stuff working correctly without \/, but I'll give
it a try and see if that helps.  Maybe these were never working right in the
first place and I just never noticed.