Re: logcheck.violations.ignore --does not work

From: Mark Hansen (meh@NOSPAMunify.com)
Date: 04/10/03

  • Next message: Nico Kadel-Garcia: "Re: ANNOUNCE: C-Kermit included with Red Hat 9.0"
    From: Mark Hansen <meh@NOSPAMunify.com>
    Date: Wed, 09 Apr 2003 15:57:06 -0700
    
    

    Peter T. Breuer wrote:
    > In article <yI_ka.15778$_g3.59429@news1.mts.net> you wrote:
    >
    >> "> In comp.os.linux.misc LHradowy <laura.hradowy@nospam.mts.ca> wrote:
    >>> > I have logcheck running a on cron every hour, I need to ignore the following
    >>> > line. It runs every 10 minutes.
    >>> > I have put it in the /usr/local/etc/logcheck.violations.ignore but it does
    >>>
    >>> Why?
    >>>
    >>> Why not in the logcheck.ignore file?
    >
    >> I check the file logcheck.ignore and would not
    >> cron.*CMD
    >> take care of it. This is what is in the logcheck.ignore file...
    >
    > No, it would not take care of it.
    >
    > CRON.*CMD
    >
    > would.
    >
    >>> > not work. I have tried wild cards and still nothing! Anything I put in
    >> this
    >>>
    >>> Try just ".*" :-).
    >>>
    >>> I'm afraid your report is incoherent. Show what you "try" and we'll
    >>> tell you what's wrong with your expression.
    >
    > Well?
    >
    >
    >>> > file it does not ignore. So I still get these lines under Unusual System
    >>> > Events....
    >>> > Apr 9 12:10:00 opsftp CROND[21176]: (root) CMD (/usr/lib/sa/sa1 1 1)
    >>>
    >>> And what's wrong with ..
    >>>
    >>> CROND.*: .* CMD .*/sa/sa1
    >
    >> Tried that in the file, does not work.
    >
    >
    > Yes it DOES work. It matces the expression you gave. Cut it down to
    >
    > CROND.*: .* CMD
    >
    > if you aren't concerned about what command cron runs! (;-).
    >
    >> I have tried */usr/lib/sa/sa1*
    >
    > That would not work! Why do you try that? It doesn't match.
    >
    >
    >> *sa/sa1*
    >
    > Nor does that match! What are you doing?
    >
    >> *CMD*/usr/lib/sa
    >
    > That does not match either! Are you on drugs?
    >
    >> ... the list goes on.
    >
    > But you haven't provided any evidence to cause me to believe that you
    > have basic competence ... use an expression that matches! It's
    > pointless showing me nonmatching expressions and saying "they don't
    > work".
    >
    >> My point is that even with
    >> Tried that cron.*CMD in the logcheck.ignore file it does not work!
    >
    > That DOES NOT MATCH! Are you crazy?
    >
    > Stop making up nonsense! Just use a correct regular expression. What I
    > gave you matches fine. You only give the impression by the above that you
    > can't be trusted to write it down correctly.

    It seems the original poster is confused about the difference between
    a regular expression and a glob. His patters would make good "glob"
    patters.

    OP: In regular expression syntax, the period character match any single
    character, the asterisk character indicates "match the previous expressions
    zero or more times". So the expressions ".*" (that is dot star) will match
    zero or more of any character.

    Look up some documentation on regular expressions to get more info
    on how to write them.

    Good luck.

    >
    >
    > Peter


  • Next message: Nico Kadel-Garcia: "Re: ANNOUNCE: C-Kermit included with Red Hat 9.0"

    Relevant Pages

    • Re: OQFTCI Game 3 R2-3: percussion, casting against gender
      ... title character mysteriously changes sex from male to female. ... In which 1959 movie did Peter Sellers play Tully Bascombe, ... Name the actor. ...
      (rec.games.trivia)
    • Re: Has there ever...
      ... of Peter anyway and his feelings on Spiderman are well known...he saw ... character but I've always liked his character and how he was in his ... own way a guiding force almost a begrudging father figure to Peter. ... along...he's not that perceptive...and I also agree that Robbie is the ...
      (rec.arts.comics.marvel.universe)
    • Re: OT: The Book of Daniel
      ... where he meets John Driscoll's character. ... it clearly is a problem for Peter. ... >> father for loving his son, as if it is noble to not disown your son ... over how to tell his father about Peter being gay. ...
      (rec.arts.tv.soaps.cbs)
    • Re: OT: The Book of Daniel
      ... where he meets John Driscoll's character. ... it clearly is a problem for Peter. ... >> father for loving his son, as if it is noble to not disown your son ... over how to tell his father about Peter being gay. ...
      (rec.arts.tv.soaps.cbs)
    • Re: OT: The Book of Daniel
      ... where he meets John Driscoll's character. ... it clearly is a problem for Peter. ... >> father for loving his son, as if it is noble to not disown your son ... over how to tell his father about Peter being gay. ...
      (rec.arts.tv.soaps.cbs)

    Loading