|
There is a file in the
nagiosplug contrib called check_log2.pl. It makes a temporary file
with the byte offset from the last check so it starts the new check at
the old offset. For the new lines, it does regular _expression_
matching. [EMAIL PROTECTED] contrib]$ perl ./check_log2.pl -h check_log2.pl (nagios-plugins 1.4) 1.1 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Scan arbitrary log files for regular _expression_ matches. Usage: check_log2.pl -l <log_file> -s <log_seek_file> -p <pattern> [-n <negpattern>] Usage: check_log2.pl [ -v | --version ] Usage: check_log2.pl [ -h | --help ] -l, --logfile=<logfile> The log file to be scanned -s, --seekfile=<seekfile> The temporary file to store the seek position of the last scan -p, --pattern=<pattern> The regular _expression_ to scan for in the log file -n, --negpattern=<negpattern> The regular _expression_ to skip in the log file Cheers, - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) Julie S. Lin wrote: Hi All, |
- Re: [Nagios-users] syslog monitoring Harper Mann
- Re: [Nagios-users] syslog monitoring Jason Martin
