====== 安裝 postfix Agent 的方式 ====== * 返回 [[tech:librenms]] * 這是 SNMP Extend * 至 postfix 主機內安裝 yum install postfix-perl-scripts wget https://github.com/librenms/librenms-agent/raw/master/snmp/postfix-queues -O /etc/snmp/postfix-queues chmod +x /etc/snmp/postfix-queues wget https://github.com/librenms/librenms-agent/raw/master/snmp/postfixdetailed -O /etc/snmp/postfixdetailed chmod +x /etc/snmp/postfixdetailed * 確認 postfix-queues 可以正確執行 /etc/snmp/postfix-queues 如果正確執行應該可以看到類似的訊息 0 0 0 0 * 確認 postfixdetailed 可以正確執行 /etc/snmp/postfixdetailed 如果正確執行應該可以看到類似的訊息 2054 4158 8 0 0 640 0 0 0 9413000 20266000 54 8 10 2 0 0 0 175 0 0 0 0 0 0 0 0 0 0 6 0 0 * 修改 snmpd 設定 vi /etc/snmp/snmpd.conf : extend mailq /etc/snmp/postfix-queues extend postfixdetailed /etc/snmp/postfixdetailed 重新啟動 snmpd systemctl restart snmpd ===== 參考網址 ===== * https://docs.librenms.org/Extensions/Applications/#postfix * http://coderaider.blogspot.com/2012/11/qshape-command-not-found.html {{tag>librenms agent snmp_ext}}