cacti基础应用
说明:蓝色=命令名称浅绿=命令参数
浅蓝=选项
紫色=目录
系统环境:CentOS5.7 x86_64
一、snmp配置
yum install net-snmp net-snmp-devel net-snmp-utils
注:为了方便本文采用yum安装,编译安装方法请百度。
修改配置文件:
mv /etc/snmp/snmpd.comf /etc/snmp/snmpd.conf.b
vim /etc/snmp/snmpd.conf
编辑内容如下:
http://blog.运维网.com/attachment/201203/160953537.png
service snmpd start
在监控服务器上测试:snmpwalk -v2c -c test 192.168.1.70
http://blog.运维网.com/attachment/201203/161314997.png
屏幕会输出很多内容表示成功。
二、在cacti服务器添加被监控机。
点击 New Graphshttp://blog.运维网.com/attachment/201203/161623909.png
点击 CreatNew Host
http://blog.运维网.com/attachment/201203/162103900.png
http://blog.运维网.com/attachment/201203/162335827.png
http://blog.运维网.com/attachment/201203/162406272.png
按如图所示根据自己实际情况添加相应内容,小字体的英文描述的很详细,看不懂的建议用谷歌翻译。填好后保存在天加如下内容
http://blog.运维网.com/attachment/201203/164110192.png
再次点击 New Graphs
http://blog.运维网.com/attachment/201203/164353750.png
如上图所示,选择对应的host 然后勾选要出图的内容,点击creat
点击 Graph Trees
http://blog.运维网.com/attachment/201203/164902530.png
然后点击 Default Trees,也可点击 add 自己添加 Tree
http://blog.运维网.com/attachment/201203/165032186.png
接着点击 下图所示 的 add
http://blog.运维网.com/attachment/201203/165339215.png
然后按自己的情况添加即可,如下图所示
http://blog.运维网.com/attachment/201203/165525138.png
稍等几分钟 点击 顶部 graghs 内容如下
http://blog.运维网.com/attachment/201203/165901638.png
http://blog.运维网.com/attachment/201203/165918903.png
cacti 不难,其他内容通过注释基本都能应用,不能太死板,多看注释,用用就都明白了。
页:
[1]