You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
315 B
11 lines
315 B
#!/bin/bash
|
|
BINDIR='/var/lib/zabbix/bin'
|
|
LOGTAIL=$BINDIR'/logtail.pl'
|
|
PARSER=$BINDIR'/parse_mail_out.pl'
|
|
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
|
|
|
|
|