mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
be more clear
This commit is contained in:
parent
b13a180e92
commit
bd0ff0947c
1 changed files with 3 additions and 3 deletions
|
@ -59,7 +59,7 @@ GPLv2
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
#set -xv
|
#set -xv
|
||||||
SYS_LOG="${logfiles:-/var/log/mail.log /var/log/mail.log.1}"
|
MAIL_LOG="${logfiles:-/var/log/mail.log /var/log/mail.log.1}"
|
||||||
|
|
||||||
GREP_HOSTNAME="${0##*postfix_stats_}"
|
GREP_HOSTNAME="${0##*postfix_stats_}"
|
||||||
|
|
||||||
|
@ -117,9 +117,9 @@ fi
|
||||||
# Variable to store the pflogsumm result.
|
# Variable to store the pflogsumm result.
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
if [ -n "${GREP_HOSTNAME}" ]; then
|
if [ -n "${GREP_HOSTNAME}" ]; then
|
||||||
TMP_RAW=$(grep -h " ${GREP_HOSTNAME} postfix/" ${SYS_LOG} | "${PFLOGSUMM}" -d today --detail 0 --zero-fill)
|
TMP_RAW=$(grep -h " ${GREP_HOSTNAME} postfix/" ${MAIL_LOG} | "${PFLOGSUMM}" -d today --detail 0 --zero-fill)
|
||||||
else
|
else
|
||||||
TMP_RAW=$("${PFLOGSUMM}" -d today --detail 0 --zero-fill "${SYS_LOG}")
|
TMP_RAW=$("${PFLOGSUMM}" -d today --detail 0 --zero-fill "${MAIL_LOG}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Parse value from Raw result
|
# Parse value from Raw result
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue