grafana+zabbix可视化监控

安装garafana和连接zabbix数据源的插件

[root@localhost /]# dnf -y install grafana
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:05:47 ago on Tue May 18 20:31:36 2021.
Dependencies resolved.
===============================================================================
 Package              Architecture    Version                Repository   Size
===============================================================================
Installing:
 grafana              x86_64          7.3.4-1.el8            a2           38 M
Installing weak dependencies:
 grafana-pcp          x86_64          3.0.0-1.el8            a2          9.1 M

Transaction Summary
===============================================================================
Install  2 Packages

Total size: 47 M
Installed size: 189 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                       1/1 
  Installing       : grafana-pcp-3.0.0-1.el8.x86_64                        1/2 
  Running scriptlet: grafana-7.3.4-1.el8.x86_64                            2/2 
  Installing       : grafana-7.3.4-1.el8.x86_64                            2/2 
  Running scriptlet: grafana-7.3.4-1.el8.x86_64                            2/2 
  Running scriptlet: grafana-pcp-3.0.0-1.el8.x86_64                        2/2 
  Running scriptlet: grafana-7.3.4-1.el8.x86_64                            2/2 
/sbin/ldconfig: File /lib64/libgpm.so.2 is empty, not checked.
/sbin/ldconfig: File /lib64/libgpm.so.2.1.0 is empty, not checked.

  Verifying        : grafana-7.3.4-1.el8.x86_64                            1/2 
  Verifying        : grafana-pcp-3.0.0-1.el8.x86_64                        2/2 
Installed products updated.

Installed:
  grafana-7.3.4-1.el8.x86_64           grafana-pcp-3.0.0-1.el8.x86_64          

Complete!
[root@localhost /]#  grafana-cli plugins install alexanderzobnin-zabbix-app
installing alexanderzobnin-zabbix-app @ 4.1.4
from: https://grafana.com/api/plugins/alexanderzobnin-zabbix-app/versions/4.1.4/download
into: /var/lib/grafana/plugins

✔ Installed alexanderzobnin-zabbix-app successfully 

Restart grafana after installing plugins . <service grafana-server restart>
[root@localhost /]# systemctl start grafana-server
[root@localhost /]# ss -antl
State   Recv-Q   Send-Q     Local Address:Port      Peer Address:Port  Process  
LISTEN  0        128              0.0.0.0:10050          0.0.0.0:*              
LISTEN  0        128              0.0.0.0:10051          0.0.0.0:*              
LISTEN  0        128              0.0.0.0:9000           0.0.0.0:*              
LISTEN  0        128              0.0.0.0:111            0.0.0.0:*              
LISTEN  0        128              0.0.0.0:80             0.0.0.0:*              
LISTEN  0        32         192.168.122.1:53             0.0.0.0:*              
LISTEN  0        128              0.0.0.0:22             0.0.0.0:*              
LISTEN  0        5              127.0.0.1:631            0.0.0.0:*              
LISTEN  0        80                     *:3306                 *:*              
LISTEN  0        128                 [::]:111               [::]:*              
LISTEN  0        128                 [::]:22                [::]:*              
LISTEN  0        5                  [::1]:631               [::]:*              
LISTEN  0        128                    *:3000                 *:*          

访问garafana主机的3000端口
默认账号:admin 密码:admin
在这里插入图片描述
第一次登录修改初始密码,还是设置的admin

连接zabbix的api接口获取数据
开启grafana和zabbix连接的插件
在这里插入图片描述
在这里插入图片描述

选择添加数据源
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
配置zabbix账号密码和api接口
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在官网找到自己想要的模板
官网地址:https://grafana.com/
打开搜索模板的界面
在这里插入图片描述
选择zabbix在列表中找到自己想要的模板
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
效果
在这里插入图片描述
反正效果出不来,我也不知道为什么,反正账户密码一直不对,我也不知道为什么

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
回答: Grafana、Prometheus和Zabbix是三个常用的监控工具。Grafana是一个开源的数据可视化监控平台,Prometheus是一个开源的系统和服务监控工具,而Zabbix是一个功能强大的网络监控解决方案。这三个工具可以结合使用,以实现更全面和灵活的监控和数据可视化。具体的安装和配置步骤如下: 1. 首先,安装和配置Zabbix Server。可以通过编辑Zabbix Server的配置文件`/usr/local/zabbix/etc/zabbix_server.conf`来设置监听端口、日志文件路径、数据库连接等参数\[1\]。 2. 接下来,安装Zabbix Agent。建议使用rpm包方式安装,可以从Zabbix官方仓库下载对应版本的rpm包\[2\]。 3. 安装和配置Grafana。首先,从Grafana官方网站下载并安装Grafana。然后,启动Grafana服务,并通过浏览器访问Grafana的Web界面。在Grafana中,配置Prometheus数据源,以便从Prometheus获取监控数据。 4. 安装和配置Prometheus。首先,从Prometheus官方网站下载并安装Prometheus。然后,编辑Prometheus的配置文件,配置需要监控的目标和指标。最后,启动Prometheus服务。 5. 将Zabbix与Prometheus集成。可以使用Prometheus的Zabbix Exporter来将Zabbix监控数据导入到Prometheus中。通过配置Prometheus的`prometheus.yml`文件,将Zabbix Exporter添加为一个目标。 综上所述,通过安装和配置Grafana、Prometheus和Zabbix,可以实现监控数据的采集、存储和可视化。这样,您就可以使用Grafana来创建仪表盘,展示和分析监控数据,同时利用Prometheus和Zabbix来收集和处理监控数据\[1\]\[2\]\[3\]。 #### 引用[.reference_title] - *1* *2* *3* [Grafana+Zabbix+Prometheus 监控系统](https://blog.csdn.net/weixin_30751947/article/details/97696747)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值