分类: 系统运维
2005-03-15 10:36:10
我安装mrtg的具体配置记录:
1.产生配置: /usr/local/mrtg-2/bin/cfgmaker --output=/var/www/html/mrtg/8.38/mrtg.cfg public@192.168.8.38
2.编辑配置: vi /var/www/html/mrtg/8.38/mrtg.cfg
增加:
WorkDir: /var/www/html/mrtg/8.38/
Options[_]: growright, bits
Language:GB2312
3.执行配置(初次安装要三次) /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/8.38/mrtg.cfg
4.产生页面: /usr/local/mrtg-2/bin/indexmaker --output=/var/www/html/mrtg/8.38/index.html --title=Server8.38网络监控系统 /var/www/html/mrtg/8.38/mrtg.cfg
5.自动每5分钟执行: */5 * * * * /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/8.38/mrtg.cfg >/dev/null 2>&1