diff options
author | Youniverse <y0un1verse@yandex.ru> | 2019-03-21 18:21:00 +0300 |
---|---|---|
committer | Youniverse <y0un1verse@yandex.ru> | 2019-03-21 18:21:00 +0300 |
commit | d07458326075e53e6c9eae1852ad8667219e7c19 (patch) | |
tree | 6937d0b58002ab30ea4a85d3f078badaaaecaaae /README.md | |
parent | 6b81e9f75376c56b0a252696d18be1f209df8b70 (diff) |
Updates
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..4761f9d --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# zabbix-postfix-template +Zabbix template for Postfix SMTP server +Works for Zabbix 4.x + +Forked from http://admin.shamot.cz/?p=424 + +# Requirements +* [pflogsum](http://jimsun.linxnet.com/postfix_contrib.html) +* [pygtail](https://pypi.org/project/pygtail/) + +# 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 + 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
\ No newline at end of file |