/[monit]/monit/web/doc/next.php
ViewVC logotype

Diff of /monit/web/doc/next.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by martinp, Fri Apr 15 16:31:05 2005 UTC revision 1.14 by hauk, Thu May 5 16:44:37 2005 UTC
# Line 39  mailing lists</A> and let us know. Line 39  mailing lists</A> and let us know.
39  <ol>  <ol>
40    <li><a href="#01">Refactor SMTP support</a></li>    <li><a href="#01">Refactor SMTP support</a></li>
41    <li><a href="#02">Refactor the CVS repository and release tree</a></li>    <li><a href="#02">Refactor the CVS repository and release tree</a></li>
42      <li><a href="#31">Monitor a (log) file using regex</a></li>
43      <li><a href="#32">Customize monit log file output</a></li>
44    <li><a href="#03">Allow formating of trailing event description sent in an alert email</a></li>    <li><a href="#03">Allow formating of trailing event description sent in an alert email</a></li>
45    <li><a href="#06">URL request for protocol tests (like ldap, ftp, etc.)</a></li>    <li><a href="#06">URL request for protocol tests (like ldap, ftp, etc.)</a></li>
46    <li><a href="#07">Network interfaces health and load monitoring</a></li>    <li><a href="#07">Network interfaces health and load monitoring</a></li>
# Line 52  mailing lists</A> and let us know. Line 54  mailing lists</A> and let us know.
54    <li><a href="#20">Event ratio dependant action rules</a></li>    <li><a href="#20">Event ratio dependant action rules</a></li>
55    <li><a href="#21">Action list support and optional service name target</a></li>    <li><a href="#21">Action list support and optional service name target</a></li>
56    <li><a href="#22">Soft failure tolerance for ICMP echo test (ping)</a></li>    <li><a href="#22">Soft failure tolerance for ICMP echo test (ping)</a></li>
57    
58  </ol>  </ol>
59  </div>  </div>
60    
# Line 123  mailing lists</A> and let us know. Line 126  mailing lists</A> and let us know.
126  </table>  </table>
127    
128    
129    <table id="feature">
130    <tr>
131    <td colspan=2 >
132    <h3><a name="31">Monitor a file using regex</a></h3>
133    
134    This function will allow monit to monitor files such as log files for certain
135    content. Users can specify a regular expression which will be checked
136    against the file for each monitor cycle. If a match occurs, monit will
137    issue one of the standard actions, such as an alert or a exec. Here is an
138    example on how an entry may look like in the monit control file:
139    
140    <pre>
141    check file syslog with path /var/log/messages
142          if match "^[A-Za-z]+ .[0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9].* .* .*$"
143             then alert
144    </pre>
145    
146    <p>Monit will maintain the offset of each file (a la logtail) so it would
147    check only the last  entries. The regex check is done per line or per 512
148    bytes, whichever comes first.
149    
150    </td>
151    </tr>
152    <tr>
153    <td width="10%" style="padding-right: 20px;">Responsible:</td>
154    <td>?</td>
155    </tr>
156    <tr>
157    <td>Progress:</td>
158    <td bgcolor="blue" align=center>
159    <b><font color="#ffffff">0%</font></b>
160    </td>
161    </tr>
162    <tr>
163    <td>Importance:</td>
164    <td><b>MEDIUM</b></td>
165    </tr>
166    </table>
167    
168    
169    <table id="feature">
170    <tr>
171    <td colspan=2 >
172    <h3><a name="32">Customize monit log file output</a></h3>
173    
174    Use the same approach as the apache project for configuring log file output.
175    The log file format will be set using a global set-statement, <p>
176    
177    <code>set logformat "%h %l %u %t %>s %b"</code>
178    
179    <p>and where applicable the format specifiers match those of apache log file.
180    
181    </td>
182    </tr>
183    <tr>
184    <td width="10%" style="padding-right: 20px;">Responsible:</td>
185    <td>?</td>
186    </tr>
187    <tr>
188    <td>Progress:</td>
189    <td bgcolor="blue" align=center>
190    <b><font color="#ffffff">0%</font></b>
191    </td>
192    </tr>
193    <tr>
194    <td>Importance:</td>
195    <td><b>MEDIUM</b></td>
196    </tr>
197    </table>
198    
199    
200  <table id="feature">  <table id="feature">
201    <tr>    <tr>
202      <td colspan=2>      <td colspan=2>

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26