监控其它主机:
系统环境:RHEL6.3 x86_64 selinux and iptables disabled
cacti主机:192.168.0.34
被监控主机:192.168.0.17
下载监控设置包和监控包:
monitor-v1.3-1.tgz
settings-v0.71-1.tgz
解压到cacti的plugins目录下
[root@server34 ~]# tar zxf monitor-v1.3-1.tgz -C /var/www/html/cacti/plugins
[root@server34 ~]# tar zxf settings-v0.71-1.tgz -C /var/www/html/cacti/plugins
[root@server34 snmp]# scp snmpd.conf 192.168.0.17:/etc/snmp/
[root@server17 ~]# yum install nte-snmp* -y
[root@server17 ~]# vim /etc/snmp/snmpd.conf
syslocation RHEL6.4
syscontact Root <root@server17.example.com>
[root@server17 ~]# /etc/init.d/snmpd start
出现以下信息,表示snmp已经成功采集到192.168.0.17主机的信息
[root@server34 snmp]# snmpwalk -v 1 192.168.0.17 -c public IP-MIB::ipAdEntIfIndex
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.192.168.0.17 = INTEGER: 2
http://192.168.0.34/cacti
为此主机创建图形:Create Graphs for this Host->
Graph Trees->(Tree Item Type)选择host->Host->server17.example.com->Round Robin Archive->Daily(5 Minute )
安装激活setting与monitor
Device->add
可以按照企业的要求添加其他的服务
进入cacti监控页面需要启动的服务有:
snmpd,httpd,iptables,mysqld
本文出自 “爨利芳” 博客,请务必保留此出处http://cuanlf.blog.51cto.com/8241982/1403375
原文:http://cuanlf.blog.51cto.com/8241982/1403375