Skip to content

kstka/zabbix-postfix-template

Repository files navigation

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

About

Zabbix template for Postfix SMTP server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published