You do need to know that the the plugin stores the position of the last scan in the seek file specified with the -s flag so it will only report new items found
For example, I ran the following
Code: Select all
./check_log3.pl -l '/tmp/logtest' -s alertlog.seek -p autobackup
WARNING: Found 4 lines (limit=1/0): Control autobackup written to DISK device
Code: Select all
./check_log3.pl -l '/tmp/logtest' -s alertlog.seek -p autobackup
OK - No matches found.
Code: Select all
rm -f /tmp/logtest
./check_log3.pl -l '/tmp/logtest' -s alertlog.seek -p autobackup
WARNING: Found 4 lines (limit=1/0): Control autobackup written to DISK device