BOSCO 蜻蜓点水,一点一滴

On a new journey……

Cacti设置--添加监控主机

 

Cacti中添加监控主机设置方法:

① 添加设备

                                                                                              图1

                                                                                             图2

                                                                                                                    图3

 

然后点击右下角的“Create”,正常情况下会得到被监控主机的系统信息:

                                                                                                                 图4

如果主机信息不正确或是被监控主机通信不正常,那么就会出现“SNMP error”提示:

                                                                                        图5

如果在cacti中添加监控主机时,提示错误“SNMP error”,那么处理的方法:

第一,确定cacti所有的主机能ping通被监控主机;如果不能ping通,请确认网络配置和被监控主机的ip设置是否正确。

第二,如果能ping通,那么确认被监控主机是否启用snmpd服务:

ps -ef | grep snmp

或者直接重启被监控主机的snmp服务:

rcsnmpd restart

若上面的命令不可用,则用这两个:

service snmpd reload

service snmpd restart

然后到cacti服务器上,用root用户:

snmpwalk -c public -v 2c 192.168.124.14    --> (这个ip为被监控主机的ip)

如果能够接收到被监控机器的数据信息,则表示被监控主机的snmp配置已经完成,没有错误。如果没有接收到被监控主机的数据信息,那么进行第三步操作。

第三,用root登录被监控主机,修改snmp的配置文件:

vi /etc/snmp/snmpd.conf

最后配置如下:

syslocation Server Room

syscontact Sysadmin (root@localhost)

rocommunity public 127.0.0.1

agentaddress 161

rocommunity public

rwcommunity private

trapsink 192.168.124.14 public 162     --> 这里的ip=192.168.124.14为被监控主机ip

然后,再执行第二步操作即可。

 

接着添加被监控主机的系统分区的监控:

                                                                                                 图6

                                                                                                 图7

② 创建graph

                                                                                              图8

                                                                                    图9

                                                                                   图10

                                                                                   图11

③ 创建graph trees

                                                                                    图12

                                                                                    图13

                                                                                       图14

 

                                                                                      图15

                                                                                      图16

至此,添加监控主机的基本操作完成。

 

 

 

阅读更多
版权声明:本文为博主hw_libo原创文章,未经博主允许不得转载。 https://blog.csdn.net/HW_LiBo/article/details/6881480
个人分类: RHEL SuSE Linux
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭