<br><tt><font size=2>> HOST=s068a300<br>>     LOG     %.* %(fatal|error) IGNORE=%(?-i)smb_proc_readdir_long<br>This also does not work.</font></tt><br><tt><font size=2>But that seems clear to me. I would switch case _in_sensitivity
off, so it would be case sensitive, that is more likely to fail.</font></tt><br><br><tt><font size=2>Thorsten</font></tt><br><br><tt><font size=2>> <br>>  From hobbit-client.cfg(5):<br>> ...<br>>       Note that Xymon defaults  to  case-<br>>       insensitive  pattern matching; if that is
not what you want,<br>>       put "(?-i)" between the "%"
and the  regular  expression  to<br>>       turn  this off. E.g. "%(?-i)HTTPD"
will match the word HTTPD<br>>       only when it is upper-case.<br>> ...<br>> <br>> <br>>  > Another question: if I have many IGNOREs, can I put them
on multiple<br>>  > lines for readability like this:<br>> <br>> I don't think this is supported.<br>> Rules are separated with | (pipe)<br>> <br>> E.g.:  IGNORE=%(?-i)forceload|hypervisor\sLDC<br>> <br>> <br>> BTW: hobbitd_client can be used for testing your rules:<br>> <br>> [bb@iris bin]$ ./hobbitd_client --test<br>> Hostname (.=end, ?=dump, !=reload) []: testhost<br>> Hosttype []: linux<br>> Test (cpu, mem, disk, proc, log, port): log<br>> log filename: /var/log/messages<br>> To read log data from a file, enter '@FILENAME' at the prompt<br>> log line: Testmessage ERROR smb_proc_readdir_long<br>> log line:<br>> Log status is green<br>> <br>> Hostname (.=end, ?=dump, !=reload) [testhost]:<br>> <br>> <br>> Dominique<br>> <br>> thorsten.erdmann@daimler.com wrote:<br>> > <br>> > Hi<br>> > <br>> > I have some difficulties to ignore some messages using the <br>> > hobbit-client.cfg file.<br>> > <br>> > I want to ignore all messages that contain the word "smb_proc_readdir_long".<br>> > <br>> > So I build such rule:<br>> > <br>> > HOST=s068a300<br>> >         LOG     %.* %(fatal|error)
  COLOR=red   <br>> > IGNORE=smb_proc_readdir_long<br>> >         LOG     %.* warning  
       COLOR=yellow<br>> > <br>> > I also tried IGNORE=%smb...<br>> > <br>> > If I write a message to /var/log/user like this:<br>> > <br>> > logger -p daemon.notice Testmessage ERROR smb_proc_readdir_long<br>> > <br>> > the message is not ignored by Hobbit:<br>> > <br>> > System logs at Fri Sep 4 11:08:39 CEST 2009<br>> > <br>> >  Critical entries in /var/log/messages<br>> >  .2009/09/04 11:03:53][s068a300:daemon.notice] root: Testmessage
ERROR <br>> > smb_proc_readdir_long<br>> >  .2009/09/04 11:03:53][s068a300:daemon.notice] root: Testmessage
ERROR <br>> > smb_proc_readdir_long<br>> > <br>> > <br>> > Another question: if I have many IGNOREs, can I put them on multiple
<br>> > lines for readability like this:<br>> > <br>> > HOST=s068a300<br>> >         LOG     %.* %(fatal|error)
  COLOR=red  <br>> >          IGNORE=smb_proc_readdir_long<br>> >          IGNORE=blabla<br>> >          IGNORE=nonsense<br>> >         LOG     %.* warning  
       COLOR=yellow<br>> >  <br>> > <br>> > <br>> >  <br>> > Thorsten Erdmann<br>> > <br>> > If you are not the intended addressee, please inform us immediately
that <br>> > you have received this e-mail in error, and delete it. We thank
you for <br>> > your cooperation.<br>> > <br>> <br>> To unsubscribe from the hobbit list, send an e-mail to<br>> hobbit-unsubscribe@hswn.dk<br>> <br>> <br></font></tt><font face="sans-serif"><font face="sans-serif, Arial, Helvetica" size="-1" color="#808080"><br>If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation.
<br></br> 
                                                                          
</font></font>