Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
808
Widok
0
28/07/2022 2:26 pm
Topic starter
statistics
1 Answer
0
28/07/2022 3:24 pm
Topic starter
FreeBSD example
- download template https://muszak.eu/download/278026/
- download zabbix agent scripts https://muszak.eu/download/278031/
- and put this file inside /usr/local/etc/zabbix5/zabbix_agentd.conf.d/zabbix_5_postfix_zabbix_agent_script.bash
- create postfix.conf /usr/local/etc/zabbix5/zabbix_agentd.conf/postifx.conf
UserParameter=postfix.pfmailq,mailq | grep -v "Mail queue is empty" | grep -c '^[0-9A-Z]' UserParameter=postfix[*],/usr/local/etc/zabbix5/zabbix_agentd.conf.d/zabbix_5_postfix_zabbix_agent_script.bash $1
- make sure that all conf files are loaded
- edit zabbix_agentd.conf and add at bottom
Include=/usr/local/etc/zabbix5/zabbix_agentd.conf.d/*.conf