Wednesday, February 23, 2011

Monitoring Postfix Mail Queue on Zabbix

/etc/zabbix/zabbix-agentd.conf
UserParameter=postfix.deferred, sudo /usr/sbin/qshape deferred | grep TOTAL | awk '{print $ 2}'
UserParameter=postfix.queue, sudo /usr/sbin/qshape | grep TOTAL | awk '{print $ 2}'

LogFile=/var/log/zabbix-agent/zabbix_agentd.log

visudo
zabbix ALL = NOPASSWD:/usr/sbin/qshape

No comments:

Post a Comment