zabbix的基础使用
zabbix服务端web界面使用介绍
基于zabbix服务端的部署进行下面的操作
web界面
登录时,默认进入监控选项栏的仪表板界面。
[En]
When we log in, we enter the dashboard interface of the monitoring options bar by default.
(Monitoring)监控选项栏设置
(Dashboard)仪表盘
我们通常需要修改的是仪表板的布局。
[En]
What we usually have to modify here is the layout of the dashboard.
选择编辑仪表盘
将”当前问题组件”放在最上方
(Problems)问题标签
一般是用来筛选问题使用
(Hosts)主机标签
用于过滤和监控主机的每个数据镜像
[En]
Used to filter and monitor each data image of the host
点击(Graphs 26)可以查看主机资源统计图
(Latest data)最新数据标签
用于查看数据
(Maps)网络结构图标签
用于观测网络结构图
(Discovery)发现设备标签
用于检测设备
(Services)服务选项栏
(Service)服务标签
用于筛选服务进行监控
(Service actions)服务行动标签
要创建新的服务操作,请单击右上角的创建操作
[En]
To create a new service operation, click create Action in the upper right corner
(SLK)服务协议
(SLK report)服务协议报告
(lnventory)清单选项栏
用于资产管理(通常不使用)
[En]
Used for asset management (generally not used)
(Overview)概述标签
可以查看field和主机数量
(Hosts)主机标签
可用于查看每台主机的库存信息
[En]
Can be used to view the inventory information of each host
(Reports)报告选项栏
用来查看各类信息
(System information)系统信息标签
(Scheduled reports)调度器标签
右上角用于创建报告。当出现问题时,调度程序通常会生成报告。
[En]
The upper right corner is used to create a report. The scheduler usually generates a report when something goes wrong.
(Availability report)可用性报告标签
这份报告还将报告我们的问题。
[En]
This report will also report our problems.
(Triggers top 100)触发器前100标签
用来查看100 个最繁忙的触发器
(Audit)审计标签
用来查看审计日志的
(Action log)行动日志标签
(Notifications)通知标签
(Configuration)配置选项栏
(Template groups)模板组标签
用来查看各类模板
(Host groups)主机组标签
用于添加和修改主机组,主机已添加到主机组
[En]
Used to add and modify the host group, the host has been added to the host group
(Templates)模板标签
用于创建、修改和删除模板
[En]
Used to create, modify, and delete templates
(Hosts)主机标签
用于添加、删除和修改主机
[En]
Used to add, delete, and modify hosts
(Maintenance)维护标签
用来维护主机
(Actions)动作标签
动作一般有:
触发动作
发现动作
自动注册
内部动作
(Event correlation)事件相关标签
用来创建事件相关性
(Discovery)发现标签
发现规则添加后,用于发现监控设备本身。
[En]
After the discovery rule is added, it is used to discover the monitoring device by itself.
(Administration)管理选项卡
(General)通用标签
这里可以设置 “用户图形化界面”,”自动注册”,”管理过去数据”,”审计日志”,”图片”,”图标映射”,”常用表达式”,”宏”,”触发显示选项”,”地理图片”,”模块”,”api令牌”等等
(Proxies)代理标签
配置代理时使用
(Authentication)验证标签
(User groups)用户组标签
(User roles)用户规则标签
(Users)用户标签
(Media types)媒介类型标签
设置媒体,通知经理的方式是什么
[En]
Set up the medium, what is the way to notify the manager
(Scripts)脚本标签
(Queue)队列标签
队列概览
代理队列概览
队列详细信息
(User settings)用户设置
(Sign out)退出
zabbix监控配置流程
管理层次:
开发者如果想要添加监控,需要提供监控指标。
[En]
Developers need to provide monitoring indicators if they want to add monitoring.
运营商应该增加监控,并要求他们找到开发商来监控指标。
[En]
Operators should add monitoring and ask them to find developers to monitor indicators.
运维人员应增加监测,并派操作员到开发商进行指标监测。我不会的。我找不到这东西的开发商。我根本不会做这件事。
[En]
The operation and maintenance staff should add monitoring and send the operators to the developer to monitor the indicators. I won’t. I can’t find the developer for this thing. I can’t do it at all.
配置层次:
- 创建主机并加入到主机组
- 添加监控项
2.1 使用模板添加
2.2 自定义模板
2.3 手动加监控项 - 添加触发器
- 添加媒介
- 添加动作
- 手动触发告警
zabbix 监控指标:
系统:
CPU
内存
硬盘
网络:
网卡、网口
业务:
进程
端口号
日志
硬件:
电源个数
CPU温度
硬盘温度
手动创建zabbix监控
环境 IP 要安装的服务 服务器 192.168.222.250 lamp架构
zabbix server
zabbix agent 客户端 192.168.222.251 zabbix agent
zabbix客户端部署
[root@localhost ~]# useradd -rMs /sbin/nologin zabbix
//创建用户
[root@localhost ~]# dnf -y install make gcc gcc-c++ pcre-devel openssl openssl-devel
//下载编译工具和依赖包
...
pcre2-devel-10.32-2.el8.x86_64 pcre2-utf16-10.32-2.el8.x86_64
pcre2-utf32-10.32-2.el8.x86_64 zlib-devel-1.2.11-17.el8.x86_64
Complete!
[root@localhost ~]# wget https://cdn.zabbix.com/zabbix/sources/stable/6.2/zabbix-6.2.2.tar.gz
//下载源码包
--2022-09-04 22:17:12-- https://cdn.zabbix.com/zabbix/sources/stable/6.2/zabbix-6.2.2.tar.gz
Resolving cdn.zabbix.com (cdn.zabbix.com)... 104.26.7.148, 172.67.69.4, 104.26.6.148, ...
Connecting to cdn.zabbix.com (cdn.zabbix.com)|104.26.7.148|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 34995538 (33M) [application/octet-stream]
Saving to: 'zabbix-6.2.2.tar.gz'
zabbix-6.2.2.tar.gz 100%[======================================>] 33.37M 1.04MB/s in 68s
2022-09-04 22:18:21 (502 KB/s) - 'zabbix-6.2.2.tar.gz' saved [34995538/34995538]
[root@localhost ~]# ls
anaconda-ks.cfg zabbix-6.2.2.tar.gz
[root@localhost ~]# tar xf zabbix-6.2.2.tar.gz //解压
[root@localhost ~]# cd zabbix-6.2.2/
[root@localhost zabbix-6.2.2]# ./configure --enable-agent
//编译zabbix_agentd
.....
***********************************************************
* Now run 'make install' *
* *
* Thank you for using Zabbix! *
* <http: www.zabbix.com> *
***********************************************************
[root@localhost zabbix-6.2.2]# make install
//安装
[root@localhost zabbix-6.2.2]# cd
[root@localhost ~]# vim zabbix-6.2.2/conf/zabbix_agentd.conf
//修改配置文件
Server=192.168.222.250 //服务端ip
ServerActive=192.168.222.250 //agent主动模式
Hostname=tushanbu //zabbix系统内主机名(自定义)
[root@localhost ~]# zabbix_agentd //启动zabbix_agentd
[root@localhost ~]# ss -antl //查看端口
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 128 0.0.0.0:10050 0.0.0.0:*
LISTEN 0 128 [::]:22 [::]:*
</http:>
创建监控主机
点击右上角的创建
设置好后点右下角的添加
Original: https://www.cnblogs.com/tushanbu/p/16656459.html
Author: 涂山布
Title: zabbix的基础使用
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/522751/
转载文章受原作者版权保护。转载请注明原作者出处!