字體:  

修正 MRTG: Use of Uninitialized Value $first 的bug

camry 發表於: 2015-2-06 18:14 來源: ADJ網路控股集團


今天在 centos 6.6 上面安裝 mrtg 時.遇到下面的錯誤

# indexmaker --output=/var/www/mrtg/index.html /etc/mrtg/mrtg.cfg
Use of uninitialized value $ first in hash element at / usr / bin / indexmaker line 353

這時候需要修正 indexmaker
# vi  /usr/bin/indexmaker

QUOTE:


Change:
my $ first = $ order [0];
To :
my $ first = 127.0.0.1


然後重新啟動 snmpd 就可以了~~