Changeset 75d5e70 in nscp for docs/CheckEventLog/index.html


Ignore:
Timestamp:
08/15/05 18:48:14 (8 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
89f1a84
Parents:
e26cfe0
Message:

Alot of fixes and some changes (se changelog for details)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/CheckEventLog/index.html

    re26cfe0 r75d5e70  
    4141    <tr> 
    4242      <td valign="top">filter</td> 
    43       <td valign="top">in, out</td> 
    44       <td valign="top">Specify if you want to filter out or in records.</td> 
     43      <td valign="top">in, out, any, all</td> 
     44      <td valign="top">Specify the way you want to filter things.<p><b>in</b>  
     45      means any thing matching this filter will be included in the result.</p> 
     46      <p><b>out</b> means any thing matching this filter will be excluded  
     47      from the result.</p> 
     48      <p><b>any</b> means any of the filter rules has to match.</p> 
     49      <p><b>all</b> means all of the filter rules have to match.</p> 
     50      <p>Thus filter=all filter=in and filter=any filter=out is the  
     51      combinations that makes the most sence depending on your filter  
     52      concept.</td> 
    4553    </tr> 
    4654    <tr> 
     
    4856      <td valign="top"><i>None</i></td> 
    4957      <td valign="top">Flag to specify if you want to include string  
    50       representationof the error messages.</td> 
     58      representation of the error messages.</td> 
    5159    </tr> 
    5260    <tr> 
    5361      <td valign="top">truncate</td> 
    5462      <td valign="top">length of the returned set</td> 
    55       <td valign="top">This wil ltruncate the output after the specified  
     63      <td valign="top">This will truncate the output after the specified  
    5664      length. As NRPE can only handle 1024 chars you need to truncate the  
    5765      output.</td> 
    5866    </tr> 
    5967    <tr> 
    60       <td valign="top">warning-count</td> 
     68      <td valign="top">MaxWarn</td> 
    6169      <td valign="top">number of records</td> 
    6270      <td valign="top">The maximum records to allow before reporting a  
     
    6472    </tr> 
    6573    <tr> 
    66       <td valign="top">critical-count</td> 
     74      <td valign="top">MaxCrit</td> 
    6775      <td valign="top">number of records</td> 
    6876      <td valign="top">The maximum records to allow before reporting a  
     
    8290      filter-eventSource</td> 
    8391      <td valign="top"> 
    84       regexp</td> 
     92      string expression</td> 
    8593      <td valign="top"> 
    86       The name of the source of the event.</td> 
     94      The name of the source of the event. Can be a substring or  
     95      regularexpression</td> 
    8796    </tr> 
    8897    <tr> 
     
    9099      filter-generated</td> 
    91100      <td valign="top"> 
    92       Time with optional postfix</td> 
     101      time expression</td> 
    93102      <td valign="top"> 
    94103      Time ago the message was generated</td> 
     
    98107      filter-written</td> 
    99108      <td valign="top"> 
    100       Time with optional postfix</td> 
     109      time expression</td> 
    101110      <td valign="top"> 
    102111      Time ago the message was written to the log</td> 
     
    106115      filter-message</td> 
    107116      <td valign="top"> 
    108       regexp</td> 
     117      string expression</td> 
    109118      <td valign="top"> 
    110       Filter strings in the message.</td> 
     119      Filter strings in the message. Can be a substring or  
     120      regularexpression</td> 
    111121    </tr> 
    112122  </table> 
    113   <p>The “Time with optional postfix” is a way to simply specify large times by  
    114   adding unit postfix. The available postfixes are S for Second, M for Minute,  
    115   H for Hour, D for Day and W for week. </p> 
     123  <p>&nbsp;</p> 
     124  <p>A time expression is a date/time intervall as a number prefixed by a  
     125  filter prefix (&lt;, &gt;, =, !=) and followed by a unit postfix (m, s, h, d, w).  
     126  A few examples of time expression are: filter-generated=&gt;2d means filter  
     127  will match any records older than 2 days, filter-generated=&lt;2h means match  
     128  any records newver then 2 hours.</p> 
     129  <p>A string expression is a key followed by a string that specifies a string  
     130  expression. Currently substr and regexp are supported. Thus you enter  
     131  filter-message=regexp:(foo|bar) to enter a regular expression and  
     132  filter-message=substr:foo to enter a substring patter match.</p> 
    116133  <h3>Examples</h3> 
    117134  <div class="example"> 
     
    122139      all warnings. Allow 3 errors before a warning is issued and 7 before  
    123140      a critical state.</b></p> 
    124       <p><code>checkEventLog file=system file=application filter-eventType=warning filter-generated=1d filter-eventSource=Cdrom filter-eventSource=NSClient warning-count=3 critical-count=7</code></p> 
     141      <p><code>checkEventLog file=system file=application  
     142      MaxWarn=1 MaxCrit=1 filter-generated=&gt;2d filter-eventSource=substr:Service  
     143      filter-eventSource=substr:Tcpip filter=out filter=any</code></p> 
    125144      <p><code>CRITICAL: 27 > critical: ESENT, ESENT, ESENT, ESENT,...</code></p> 
    126145      <div class="config"> 
     
    128147        <p>&nbsp;&nbsp;&nbsp; command_name check_event_log </p> 
    129148        <p>&nbsp;&nbsp;&nbsp; command_line check_nrpe -H $HOSTADDRESS$ -p  
    130         5666 -c checkEventLog -a file=system file=application filter-eventType=warning filter-generated=1d filter-eventSource=Cdrom filter-eventSource=NSClient warning-count=3 critical-count=7 </p> 
     149        5666 -c checkEventLog -a file=system file=application MaxWarn=1 MaxCrit=1  
     150      filter-generated=&gt;2d filter-eventSource=substr:Service  
     151      filter-eventSource=substr:Tcpip filter=out filter=any</p> 
    131152        <p>}</p> 
    132153        <p>&nbsp;&nbsp;&nbsp; check_command check_event_log 
Note: See TracChangeset for help on using the changeset viewer.