zabbix的基础使用

zabbix的基础使用

创建zabbix监控服务

环境 IP 要安装的应用 服务器 192.168.111.135 lamp架构

zabbix server

zabbix agent 客户端 192.168.111.137 zabbix agent

部署zabbix客户端

#创建用户
useradd -rMs /sbin/nologin zabbix

#下载相关依赖包
[root@localhost ~]# dnf -y install make gcc gcc-c++ pcre-devel openssl openssl-devel

#下载,解压,编译安装zabbix_agentd
[root@localhost ~]# wget https://cdn.zabbix.com/zabbix/sources/stable/6.2/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
[root@localhost zabbix-6.2.2]# make install

#修改配置文件
[root@localhost ~]# vim zabbix-6.2.2/conf/zabbix_agentd.conf
Server=192.168.111.135          //修改为服务端IP地址

ServerActive=192.168.111.135            //agent主动模式

Hostname=zzzz           //zabbix系统内主机名

#启动并查看端口号
[root@localhost ~]# zabbix_agentd
[root@localhost ~]# ss -anlt
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:22                      0.0.0.0:*
LISTEN       0            128                         [::]:22                         [::]:*

创建监控主机

zabbix的基础使用

zabbix的基础使用

zabbix的基础使用

zabbix的基础使用

zabbix服务端web界面介绍

web界面

zabbix的基础使用

(Monitoring)监控选项栏设置

(Dashboard)仪表盘

我们通常需要修改的是仪表板的布局。

[En]

What we usually have to modify here is the layout of the dashboard.

选择编辑仪表盘

zabbix的基础使用

一般我们都会将”当前问题组件”放在最上方

zabbix的基础使用

(Problems)问题标签

zabbix的基础使用

(Hosts)主机标签

用于过滤和监控主机的每个数据镜像

[En]

Used to filter and monitor each data image of the host

zabbix的基础使用

主机资源统计图

zabbix的基础使用

zabbix的基础使用

(Latest data)最新数据标签

用于查看数据

zabbix的基础使用

(Maps)网络结构图标签

用于观测网络结构图

zabbix的基础使用

(Discovery)发现设备标签

用于检测设备

zabbix的基础使用

(Services)服务选项栏

(Service)服务标签

用于筛选服务进行监控

zabbix的基础使用

(Service actions)服务行动标签

要创建新的服务操作,请单击右上角的创建操作

[En]

To create a new service operation, click create Action in the upper right corner

zabbix的基础使用

(lnventory)清单选项栏

用于资产管理(通常不使用)

[En]

Used for asset management (generally not used)

(Overview)概述标签

可以查看field和主机数量

zabbix的基础使用

(Hosts)主机标签

可用于查看每台主机的库存信息

[En]

Can be used to view the inventory information of each host

zabbix的基础使用

(Reports)报告选项栏

用来查看各类信息

(System information)系统信息标签

zabbix的基础使用

(Scheduled reports)调度器标签

右上角用于创建报告。当出现问题时,调度程序通常会生成报告。

[En]

The upper right corner is used to create a report. The scheduler usually generates a report when something goes wrong.

zabbix的基础使用

(Availability report)可用性报告标签

zabbix的基础使用

(Triggers top 100)触发器前100标签

用来查看100 个最繁忙的触发器

zabbix的基础使用

(Audit)审计标签

用来查看审计日志的

zabbix的基础使用

(Action log)行动日志标签

zabbix的基础使用

(Notifications)通知标签

zabbix的基础使用

(Configuration)配置选项栏

(Template groups)模板组标签

用来查看各类模板

zabbix的基础使用

(Host groups)主机组标签

用于添加和修改主机组,主机已添加到主机组

[En]

Used to add and modify the host group, the host has been added to the host group

zabbix的基础使用

(Templates)模板标签

用于创建、修改和删除模板

[En]

Used to create, modify, and delete templates

zabbix的基础使用

(Hosts)主机标签

用于添加、删除和修改主机

[En]

Used to add, delete, and modify hosts

zabbix的基础使用

(Maintenance)维护标签

用来维护主机

zabbix的基础使用

(Actions)动作标签

动作一般有
触发动作

zabbix的基础使用
发现动作
zabbix的基础使用

自动注册

zabbix的基础使用

内部动作

zabbix的基础使用

(Event correlation)事件相关标签

用来创建事件相关性

zabbix的基础使用

(Discovery)发现标签

发现规则添加后,用于发现监控设备本身。

[En]

After the discovery rule is added, it is used to discover the monitoring device by itself.

zabbix的基础使用

(Administration)管理选项卡

(General)通用标签

这了可以设置 “用户图形化界面”,”自动注册”,”管理过去数据”,”审计日志”,”图片”,”图标映射”,”常用表达式”,”宏”,”触发显示选项”,”地理图片”,”模块”,”api令牌”等等

zabbix的基础使用

(Proxies)代理标签

配置代理时使用

zabbix的基础使用

(Authentication)验证标签

zabbix的基础使用

(User groups)用户组标签

zabbix的基础使用

(User roles)用户规则标签

zabbix的基础使用

(Users)用户标签

zabbix的基础使用

设置媒体,通知经理的方式是什么

[En]

Set up the medium, what is the way to notify the manager

zabbix的基础使用

(Scripts)脚本标签

zabbix的基础使用

(Queue)队列标签

队列概览

zabbix的基础使用

代理队列概览

zabbix的基础使用

队列详细信息

zabbix的基础使用

(User settings)用户设置

zabbix的基础使用

(Sign out)退出

zabbix的基础使用

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 personnel should add monitoring and let the operators go to the developers to monitor the indicators.

配置层次:

1.添加主机或主机组
2.添加监控项
​ a. 使用模板添加
​ b. 自定义模板
​ c. 手动加监控项
3.添加触发器
4.添加媒介
5.为用户选择要使用的媒介
6.添加动作
7.手动触发并验证

zabbix 监控指标

系统:
CPU
内存
硬盘
网络:
网卡、网口
业务:
进程
端口号
日志
硬件:
电源个数
CPU温度
硬盘温度

Original: https://www.cnblogs.com/Their-own/p/16655260.html
Author: 事愿人为
Title: zabbix的基础使用

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/522753/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球