Package: swatch
Version: 3.2.3-1
Severity: normal
$ man swatch
[...]
CONFIGURATION EXAMPLE
In this example, a line which contains the string "file system full"
will be echoed and the screen bell will sound. Also, threshold will use what
is matched within the
parentheses as its key rather than trying to use the log message with
its time stamp cut out. Multiple instances of the message will not be echoed if
they appear within a
minute of the first one. Instead the following message will be acted
upon after the time interval has expired.
SEE ALSO
[...]
As you can see the example is missing.
However, the inlined perl doc gives :
=head1 CONFIGURATION EXAMPLE
=begin text
perlcode my $fsf_regex = '\d{2}:\d{2}:\d{2}\s+(.* file system full)';
watchfor /$fsf_regex/
threshold track_by=$1,type=limit,count=1,seconds=60
echo
bell
=end text
In this example, a line which contains the string "file system full" will
be echoed and the screen bell will sound. Also, B<threshold> will use what
is matched within the parentheses as its key rather than trying to use the
log message with its time stamp cut out. Multiple instances of
the message will not be echoed if they appear within a minute of the
first one. Instead the following message will be acted upon after
the time interval has expired.
Thanks in advance.
Best regards,
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (900, 'testing'), (300, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages swatch depends on:
ii libdate-calc-perl 6.3-1
ii libdate-manip-perl 6.25-1
ii libfile-tail-perl 0.99.3-4
ii libtimedate-perl 1.2000-1
ii perl [libtime-hires-perl] 5.12.4-6
swatch recommends no packages.
swatch suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]