34323 发表于 2016-8-5 08:45:55

zabbix-监控主机采集数据

#添加监控主机
                        configuraon-hosts-greate host:
                        -host:
                        host name(主机名):
                        visible name(识别名):
                        new group(添加到新组):
                        agent interfaces(代理接口)( ip address(监控ip地址):   port:10051 )

                #为主机链接模版
                        -templates:
                        link new templates:(      )select #选择对应模版即可
                                                  add   #选择结束后记得选择添加

                                                  http模版
                                                  mysql模版
                                                  ssh模版
                                                  ftp模版
                                                  os linux 模版

                监控web
                        configuration-hosts-选择对应主机-web-create scenario:

                        -scenario#设置方案
                                name (myweb)   #此方案名称
                                new application (web)#为此方案选择应用
                               update interval(in sec)(60)# 通告频率
                                retries        (1)      #尝试次数1

                        -steps#设置监控页面
                                name (home page)#监控页面名称
                                url (http://192.168.110.172/)#监控页面路径
                                Required status codes (200)#服务正常时响应代码   

                        查看监控的web数据
                                monitoring-laatest data选择对应应用查看监控到的数据(右上角选择对应主机组,及主机)       

                                Download speed for scenario "myweb".        04 Aug 2016 00:13:07        4.04 KBps   #监控页面响应速度

                                Response code for step "home page" of scenario "myweb".        04 Aug 2016 00:12:07        200   #监控的状态码

                                Response time for step "home page" of scenario "myweb".        04 Aug 2016 00:12:07        1.8ms#监控页面响应时间            


页: [1]
查看完整版本: zabbix-监控主机采集数据