顯示頁面舊版反向連結Fold/unfold all回到頁頂 本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。 ====== 安裝 postfix Agent 的方式 ====== * 返回 [[tech:librenms]] * 這是 SNMP Extend * 至 postfix 主機內安裝 <code sh> 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 </code> * 確認 postfix-queues 可以正確執行<code sh> /etc/snmp/postfix-queues</code> 如果正確執行應該可以看到類似的訊息<cli> 0 0 0 0 </cli> * 確認 postfixdetailed 可以正確執行<code sh> /etc/snmp/postfixdetailed</code> 如果正確執行應該可以看到類似的訊息<cli> 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 </cli> * 修改 snmpd 設定<code> vi /etc/snmp/snmpd.conf</code><file> : extend mailq /etc/snmp/postfix-queues extend postfixdetailed /etc/snmp/postfixdetailed </file>重新啟動 snmpd <code sh> systemctl restart snmpd </code> ===== 參考網址 ===== * https://docs.librenms.org/Extensions/Applications/#postfix * http://coderaider.blogspot.com/2012/11/qshape-command-not-found.html {{tag>librenms agent snmp_ext}} tech/librenms/postfix_agent.txt 上一次變更: 2021/01/16 14:41由 jonathan