zabbix-postfix-template
zabbix-postfix-template copied to clipboard
Postfix Mail Queue : not updated, always 0
Hi,
I noticed "Postfix Mail Queue" value was not update on Zabbix.
→ debugLevel to 4 on Mail Server:
2023/10/11 17:56:24.954405 [1] created direct exporter task for plugin 'UserParameter' itemid:0 key 'postfix[bytes_received]'
2023/10/11 17:56:24.954425 executing direct exporter task for key 'postfix[bytes_received]'
2023/10/11 17:56:24.954430 [UserParameter] executing command:'/usr/local/sbin/zabbix_postfix_passive.sh bytes_received'
2023/10/11 17:56:24.960514 [UserParameter] command:'/usr/local/sbin/zabbix_postfix_passive.sh bytes_received' length:9 output:'486724538'
2023/10/11 17:56:24.960553 executed direct exporter task for key 'postfix[bytes_received]'
2023/10/11 17:56:24.960595 sending passive check response: '486724538' to '91.xx.xx.xx'
2023/10/11 17:56:25.292389 connection established using TLSv1.3 TLS_CHACHA20_POLY1305_SHA256, peer certificate issuer:"OU=91.xx.xx.xx,O=AAA,C=FR" subject:"OU=Zabbix6_Server,O=AAA,C=FR"
2023/10/11 17:56:25.303499 received passive check request: 'postfix.pfmailq' from '176.yy.yy.yy'
2023/10/11 17:56:25.303544 [1] processing update request (1 requests)
2023/10/11 17:56:25.303551 [1] adding new request for key: 'postfix.pfmailq'
# here ⬇
2023/10/11 17:56:25.303555 [1] created direct exporter task for plugin 'UserParameter' itemid:0 key 'postfix.pfmailq'
2023/10/11 17:56:25.303573 executing direct exporter task for key 'postfix.pfmailq'
2023/10/11 17:56:25.303578 [UserParameter] executing command:'mailq | grep -v "Mail queue is empty" | grep -c '^[0-9A-Z]''
2023/10/11 17:56:25.310140 [UserParameter] command:'mailq | grep -v "Mail queue is empty" | grep -c '^[0-9A-Z]'' length:2 output:'34'
2023/10/11 17:56:25.310158 executed direct exporter task for key 'postfix.pfmailq'
2023/10/11 17:56:25.310181 sending passive check response: '34' to '176.yy.yy.yy'
# here ⬆
2023/10/11 17:56:25.458332 connection established using TLSv1.3 TLS_CHACHA20_POLY1305_SHA256, peer certificate issuer:"OU=91.xx.xx.xx,O=AAA,C=FR" subject:"OU=Zabbix6_Server,O=AAA,C=FR"
2023/10/11 17:56:25.468717 received passive check request: 'postfix.update_data' from '91.xx.xx.xx'
2023/10/11 17:56:25.468773 [1] processing update request (1 requests)
2023/10/11 17:56:25.468782 [1] adding new request for key: 'postfix.update_data'
2023/10/11 17:56:25.468788 [1] created direct exporter task for plugin 'UserParameter' itemid:0 key 'postfix.update_data'
2023/10/11 17:56:25.468819 executing direct exporter task for key 'postfix.update_data'
2023/10/11 17:56:25.468827 [UserParameter] executing command:'/usr/local/sbin/zabbix_postfix_passive.sh'
2023/10/11 17:56:25.546315 [UserParameter] command:'/usr/local/sbin/zabbix_postfix_passive.sh' length:22 output:'OK: statistics updat'
2023/10/11 17:56:25.546333 executed direct exporter task for key 'postfix.update_data'
→ On zabbix, others values are update but not "Postfix Mail Queue".
Any ideas ?
Regards
- Mail Server:
zabbix_agent2 (Zabbix) 6.4.7
- Zabbix Server:
zabbix_server (Zabbix) 6.4.7