12 lines
319 B
Plaintext
12 lines
319 B
Plaintext
|
#!/bin/bash
|
||
|
BINDIR='/var/lib/zabbix/bin'
|
||
|
LOGTAIL=$BINDIR'/util_logtail'
|
||
|
PARSER=$BINDIR'/util_parse_mail_out'
|
||
|
LOGFILE='/var/log/qmail/current'
|
||
|
TMPDIR='/var/lib/zabbix/tmp/'
|
||
|
|
||
|
for WHAT in failure deferral success total; do
|
||
|
$LOGTAIL $LOGFILE $TMPDIR/mail.out.$WHAT.offset | $PARSER $WHAT > $TMPDIR/mail.out.$WHAT
|
||
|
done
|
||
|
|