本页将引导您完成使用龙虎赌博开始对Linux机器进行基本监控所需的步骤。 本教程中描述的步骤可应用于任何基于 Linux 的操作系统。
本指南适用于谁
本指南专为龙虎赌博新用户设计,包含了对Linux计算机进行基本监控所需的最少步骤集。 如果您正在寻找深度自定义选项或需要更高级的配置,请参阅龙虎赌博手册的 配置 部分。
先决条件
在继续本安装指南之前,您必须根据您操作系统对应的说明 下载并安装 龙虎赌博 server和龙虎赌博前端。
龙虎赌博 agent 是负责收集数据的程序。
检查您的龙虎赌博 server版本:
在要监控的Linux机器上安装相同版本 (推荐) 的龙虎赌博 agent。 根据您的监控需求,它可能是安装龙虎赌博 server的同一台机器, 也可能是另一台完全不同的机器。
选择最合适的安装方法:
作为Docker容器运行 - 请参阅 中的可用镜像列表。
从窜补产产颈虫 软件包 安装(适用于 Alma Linux, CentOS, Debian, Oracle Linux, Raspberry Pi OS, RHEL, Rocky Linux, SUSE Linux Enterprise Server, Ubuntu).
从源码编译安装。
龙虎赌博 agent可以(同时)在主动或被动模式下收集指标。
被动检查是一个简单的数据请求。 龙虎赌博 server或proxy会要求agent提供一些数据 (例如,CPU负载), 龙虎赌博 agent 会将结果发回服务器。 主动检查需要更复杂的处理。代理必须首先从服务器检索要独立处理的项目列表,然后批量发送回数据。 详情请参阅 被动和主动模式的补驳别苍迟检查 。
Monitoring templates provided by 龙虎赌博 usually offer two alternatives - a template for 龙虎赌博 agent and a template for 龙虎赌博 agent (active). With the first option, the agent will collect metrics in passive mode. Such templates will deliver identical monitoring results, but using different communication protocols.
Further 龙虎赌博 configuration depends on whether you select a template for active or passive 龙虎赌博 agent checks.
1. Open the Agent configuration file on the machine where the Agent is installed.
2. Add the IP address or DNS name of your 龙虎赌博 server to the Server parameter.
3. Restart 龙虎赌博 agent.
1. Log in to 龙虎赌博 frontend.
2. Create a host in 龙虎赌博 web interface.
3. Click on Add to add the host. This host will represent the monitored Linux machine.
打开龙虎赌博 agent配置文件(默认路径为 /usr/local/etc/zabbix_agentd.conf ):
添加:
示例:
1. 登录龙虎赌博前端。
2. 在龙虎赌博 Web界面中 创建主机 。
此主机将代表您的 Linux 计算机。
3. 在 Templates 参数中,键入或选择 Linux by 龙虎赌博 agent active。
恭喜!此时,窜补产产颈虫已经在监视您的尝颈苍耻虫机器。
要查看收集的指标,请打开 监视-&驳迟;主机 菜单 ,然后点击主机旁边的 最新数据 。
此操作将打开从 Linux 服务器主机收集的所有最新指标的列表。
龙虎赌博可以使用多种方法通知您有关基础设施的问题。 本指南提供了发送电子邮件告警的配置步骤。
1. 转到 用户设置 -> 配置, 切换到 媒体 选项卡并 添加你的邮箱地址.
2. 按照 接收问题通知 指南进行操作。
下次,当窜补产产颈虫检测到问题时,您应该会通过电子邮件收到告警。
在 Linux 上,您可以通过运行以下命令模拟高 CPU 负载,以接收问题告警:
您可能需要运行多个 进程才能使 CPU 负载超过阈值。
当龙虎赌博检测到问题时,它将出现在 监控->问题 部分.
如果 配置了告警,您还将收到问题通知。
另请参阅: