mrtg的简单配置Web服务器教程
|
| 论文作者:佚名 论文来源:不详 论文发布时间:2006-6-18 21:03:01 论文发布人:chjchjchj |
减小字体
增大字体
1.安装 snmp
#apt-get install snmpd
#vi /etc/snmp/snmpd.conf
#### # Third, create a view for us to let the groups have rights to:
# incl/excl subtree mask view all included .1 80 view mib2 included .iso.org.dod.internet.mgmt.mib-2.system fc
#### # Finally, grant the 2 groups access to the 1 view with different # write permissions:
# context sec.model sec.level match read write notif access MyROSystem "" any noauth exact mib2 none none access MyROGroup "" any noauth exact all none none access MyRWGroup "" any noauth exact all all none
# -----------------------------------------------------------------------------
#/etc/init.d/snmpd restart
2.安装 mrtg
#apt-get install mrtg
#cfgmaker --global "WorkDir: /var/www/mrtg" //global参数表示后面的选项是对后面指定的设备都是有效的 --global "Options[_]: growright,bits" //WorkDir用来指示mrtg的工作目录 --ifref=ip //使用IP地址来标识网络设备接口 --output /etc/mrtg.cfg //标识将生成的配置文件存放在/etc/目录 public@192.168.0.1 //表示监控IP地址为192.168.0.1的设备,采用public作为共同体名通过snmp协议来监控设备192.168.0.1
3.运行
#mrtg /etc/mrtg.cfg
4.检查/var/www/mrtg目录
|
|
|
|
|
|
|
| ∷相关技术评论 |
(评论内容只代表网友观点,与本站立场无关!) [查看发表评论...] | |
|
|
| |
站内广告 |
| |
|
站内搜索 |
| |
栏目导航 |
| |
|
|
本月热门 |
| |
|
|
本日热门 |
| |
|
|
|