今天在 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
引用:
Change:
my $ first = $ order [0];
To :
my $ first = 127.0.0.1
然後重新啟動 snmpd 就可以了~~