Notify on single events

Jason Martin jhmartin at toger.us
Wed Jan 19 20:45:00 CET 2005


On Wed, Jan 19, 2005 at 08:34:31PM +0100, Andreas Ericsson wrote:
> >To get individual alerts you'll need to use a passive check and
> >set the service to volitile.
> No. The check_log2.pl file can lseek into the file and only scan the new 
> part. It will reset to okay immediately on the second attempt though, so 
> one will need max_check_attempts 1.
You misunderstood my concern.  I understand that check_log2
seeks to its last position in the file. However, imagine the
following timeline:

1: check_log2 polls the file.
2: Error 1 gets written to the file
3: Error 2 gets written to the file
4: check_log2 polls the file and alerts about the error.

If the original poster wanted individual alerts about steps 2,3
then passive checks are the only way to go.  If he just wanted
to know that >= 1 error messages were written between steps 1,4
then active checks will work.

-Jason Martin
-- 
This message is PGP/MIME signed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 211 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050119/b80668c6/attachment.sig>


More information about the Users mailing list