cacti客户端的配置(windows linux 交换机)(1)


cacti是我经常用的网络监控工具,它集合了LAMP的优点,能更好的为你服务!让我们来看看它的具体配置!

1、windows的snmp服务配置(1)打开“控制面板”-“添加删除程序”-“添加删除组建”

在“管理和监视工具”中选中“简单网络管理协议(snmp)”

点击“下一步”,开始安装,在安装过程中需要i386文件(2)、打开“开始”-“程序”-“管理工具”-“服务”,

找到“snmp service”,右键打开“属性”,选择“安全”,

在“接受团体名称”处,点“添加”,在“团体名称”处写入你

的cacti使用的community,选中“接受来自这些主机的snmp数据包”,

默认值为“localhost”,点击“编辑”,将“localhost”改为cacti监控服务器的

实际 ip地址。

2、linux客户端配置(RHEL AS 4)

  1. #!/bin/bash# extract all packagestar zxvf beecrypt-4.1.2.tar.gz tar zxvf libelf-0.8.6.tar.gztar zxvf net-snmp-5.4.1.tar.gz  
  2.  
  3. # snmp install  
  4.  

cd beecrypt-4.1.2./configure && make && make installln -s /usr/local/lib/libbeecrypt.la /usr/lib/

cd ../libelf-0.8.6./configure && make && make install

cd ../net-snmp-5.4.1echo "\n\n\n\n\n\n"|./configure --enable-mfd-rewrites --prefix=/opt/snmp --with-default-snmp-version="2"make && make installmv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bakecho -e 'syslocation anhui\nsyscontact jeboosa\nrocommunity dwy#x$po^\n' > /etc/snmp/snmpd.confsed -i -e 's/-a\"/-a -c \/etc\/snmp\/snmpd.conf\"/' /etc/init.d/snmpdsed -i -e 's/usr/opt\/snmp/' /etc/init.d/snmpd /sbin/service snmpd stop/sbin/service snmpd start/sbin/chkconfig --level 35 snmpd oncd ..

2)第二种方法:

修改snmp的配置文件:#vi /etc/snmp/snmpd.conf修改下面几部分内容:1.)com2sec notConfigUser default public改为:com2sec notConfigUser localhost public2.)access notConfigGroup "" any noauth exact systemview none none改为:access notConfigGroup "" any noauth exact all none none3.)#view all included .1 80去掉注释保存退出启动snmp#/etc/init.d/snmpd start


相关内容