Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7427869
  • 博文数量: 1757
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16242
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1757)

文章存档

2024年(3)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: LINUX

2009-11-09 22:39:22

安装mrtg apache及net snmpd
yum install mrtg httpd net-snmp net-snmp-utils -y
 
修改snmpd.conf
vi /etc/snmp/snmpd.conf
com2sec notConfigUser  localhost       google
access  notConfigGroup ""      any       noauth    exact all all none
view all    included  .1                               80

重启

service snmpd restart
测试
#snmpwalk -v 1 -c google localhost IP-MIB::ipAdEntIfIndex
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.204.16.1X2.xx = INTEGER: 2
IP-MIB::ipAdEntIfIndex.204.16.1X2.xx = INTEGER: 2 
建立/etc/mrtg.cfg
cfgmaker --global 'WorkDir: /var/www/mrtg' --output /etc/mrtg.cfg 
indexmaker --output=/var/www/mrtg/index.html /etc/mrtg.cfg
 
加入计划
crontab -e
*/5 * * * * LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg.cfg
 
参考:

阅读(1640) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~