Changeset 75d5e70 in nscp for docs/CheckEventLog/index.html
- Timestamp:
- 08/15/05 18:48:14 (8 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- 89f1a84
- Parents:
- e26cfe0
- File:
-
- 1 edited
-
docs/CheckEventLog/index.html (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/CheckEventLog/index.html
re26cfe0 r75d5e70 41 41 <tr> 42 42 <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> 45 53 </tr> 46 54 <tr> … … 48 56 <td valign="top"><i>None</i></td> 49 57 <td valign="top">Flag to specify if you want to include string 50 representation of the error messages.</td>58 representation of the error messages.</td> 51 59 </tr> 52 60 <tr> 53 61 <td valign="top">truncate</td> 54 62 <td valign="top">length of the returned set</td> 55 <td valign="top">This wil ltruncate the output after the specified63 <td valign="top">This will truncate the output after the specified 56 64 length. As NRPE can only handle 1024 chars you need to truncate the 57 65 output.</td> 58 66 </tr> 59 67 <tr> 60 <td valign="top"> warning-count</td>68 <td valign="top">MaxWarn</td> 61 69 <td valign="top">number of records</td> 62 70 <td valign="top">The maximum records to allow before reporting a … … 64 72 </tr> 65 73 <tr> 66 <td valign="top"> critical-count</td>74 <td valign="top">MaxCrit</td> 67 75 <td valign="top">number of records</td> 68 76 <td valign="top">The maximum records to allow before reporting a … … 82 90 filter-eventSource</td> 83 91 <td valign="top"> 84 regexp</td>92 string expression</td> 85 93 <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> 87 96 </tr> 88 97 <tr> … … 90 99 filter-generated</td> 91 100 <td valign="top"> 92 Time with optional postfix</td>101 time expression</td> 93 102 <td valign="top"> 94 103 Time ago the message was generated</td> … … 98 107 filter-written</td> 99 108 <td valign="top"> 100 Time with optional postfix</td>109 time expression</td> 101 110 <td valign="top"> 102 111 Time ago the message was written to the log</td> … … 106 115 filter-message</td> 107 116 <td valign="top"> 108 regexp</td>117 string expression</td> 109 118 <td valign="top"> 110 Filter strings in the message.</td> 119 Filter strings in the message. Can be a substring or 120 regularexpression</td> 111 121 </tr> 112 122 </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> </p> 124 <p>A time expression is a date/time intervall as a number prefixed by a 125 filter prefix (<, >, =, !=) and followed by a unit postfix (m, s, h, d, w). 126 A few examples of time expression are: filter-generated=>2d means filter 127 will match any records older than 2 days, filter-generated=<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> 116 133 <h3>Examples</h3> 117 134 <div class="example"> … … 122 139 all warnings. Allow 3 errors before a warning is issued and 7 before 123 140 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=>2d filter-eventSource=substr:Service 143 filter-eventSource=substr:Tcpip filter=out filter=any</code></p> 125 144 <p><code>CRITICAL: 27 > critical: ESENT, ESENT, ESENT, ESENT,...</code></p> 126 145 <div class="config"> … … 128 147 <p> command_name check_event_log </p> 129 148 <p> 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=>2d filter-eventSource=substr:Service 151 filter-eventSource=substr:Tcpip filter=out filter=any</p> 131 152 <p>}</p> 132 153 <p> check_command check_event_log
Note: See TracChangeset
for help on using the changeset viewer.








