cacti监控多台主机


可借助monitor插件监控,更方便,当然不用它也是可以的

被监控端(redhat):

# rpm - ivh  /media/cdrom/Server/lm_sensors-2.10.0-3.1.i386.rpm
# rpm - ivh  /media/cdrom/Server/net-snmp-5.3.1-14.e15.i386.rpm
# vi /etc/snmp/snmp.conf
access notConfigGroup  ""   192.168.1.10  noauth  exact    systemview none none  (192.168.1.10处

默认为any)
:wq
# service snmpd start


被监控端(ubuntu):


# apt-get install snmp

# vi /etc/snmp/snmpd.conf

agentAddress udp:192.168.1.11:161   (默认为:agentAddress udp:127.0.0.1:161)

:wq

# service snmpd start




监控端:(安装略,monitor也略)

cacti - console - devices - add - Description(描述):192.168.1.12(随意) - Hostname(主机名或ip,最

好ip) - 192.168.1.12 -

Monitor Host 勾上 -  SNMP option - version 1 - public(组名,和被监控端/etc/snmp/snmp.conf里一致)

- 创建 - console -

Graph Trees - add - name:192.168.1.12 - create - tree Items - add - Tree Item Type - Graph -

create - save - console -

devices - 192.168.1.12 - 添加要监控的服务生成图像即可