Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 896 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 896 Bytes

zabbix-postfix-template

Zabbix template for Postfix SMTP server

Works for Zabbix 4.x

Forked from http://admin.shamot.cz/?p=424

Requirements

Installation

# for Ubuntu / Debian
apt-get install pflogsumm

# for CentOS
yum install postfix-perl-scripts

cp pygtail.py /usr/sbin/
chmod +x /usr/sbin/pygtail.py

# ! check MAILLOG path in zabbix-postfix-stats.sh
cp zabbix-postfix-stats.sh /usr/bin/
chmod +x /usr/bin/zabbix-postfix-stats.sh

cp userparameter_postfix.conf /etc/zabbix/zabbix_agentd.d/

# run visudo as root
Defaults:zabbix !requiretty
zabbix ALL=(ALL) NOPASSWD: /usr/bin/zabbix-postfix-stats.sh

systemctl restart zabbix-agent

Finally import template_app_zabbix.xml and attach it to your host