1.3 cacti增加客户端监控

 安装客户端(增加一个linux服务器)

1. 安装snmp

yum install -y net-snmp


2. 修改snmpd.conf  vim /etc/snmp/snmpd.conf

修改syslocation以及syscontact, 其中syslocation 可以写本机ip,syscontact写管理员邮箱


syslocation 11.20  #11.20可以自定义domin hostname IP等

syscontact Root [email protected]  #管理员邮箱


3. 启动snmp

service  snmpd  start


4.  登录cacti管理后台,点console , 再点Device, 在右上角点”Add“

Description  写本机ip或你自定义一个名字

Hostname  写本机ip

Host Template  选ucd/net  SNMP Host

SNMP Version  选Version 2

点右下角的create

点右上角的”Create Graphs for this Host“

Graph Types:  选择SNMP - Interface Statistics 

在下面框中选择要监控的网卡,比如我选择eth0, 在最右侧小方块里打对勾,然后点右下角的create

Graph Types:  再选择 Graph Template Based

在下面的框中,选择你要监控的项目,比如ucd/net - Load Average 

在右侧小方块中打对勾,然后点右下角的create



5. 点左侧的Graph Trees 

选中”Default Tree“

点右上角的Add

Tree Item Type 选择 ”Host“

Host 选择我们刚刚增加的那个机器ip

点右下角的create


6. 点左上角的Graphs

在左侧可以看到

Defaut Tree下面已经增加了我们刚刚添加的主机,图形一开始不会那么快出来,要等一小会才可以。


其他cacti帖子参考   http://www.aminglinux.com/bbs/search.php?mod=forum&searchid=9&orderby=lastpost&ascdesc=desc&searchsubmit=yes&kw=cacti


你可能感兴趣的:(1.3,cacti增加客户端监控)