You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在macOS High Sierra上配置zabbix-agent:安装后配置及配置文件查找咨询

Hey there! Let me help you sort out the Zabbix agent configuration on your macOS—Homebrew's setup can be a bit tricky to navigate at first, so I’ll break this down step by step.

Finding the Zabbix Agent Configuration File

When you install Zabbix via Homebrew (even with the --without-server-proxy flag), the main config file isn’t stored in the /usr/local/Cellar/zabbix/<version> directory—that’s just where the raw installed binaries and core files live. Homebrew moves the configuration file to a standard system config location for easier management:
/usr/local/etc/zabbix/zabbix_agentd.conf

You can confirm this exists by running:

ls /usr/local/etc/zabbix/

You should see zabbix_agentd.conf listed right there.

Configuring the Target Zabbix Server

Open the config file with your favorite text editor (you’ll need sudo for write access):

sudo nano /usr/local/etc/zabbix/zabbix_agentd.conf

Update these three key parameters to point your agent to your Zabbix server:

  • Server=: Set this to the IP address or hostname of your Zabbix server. This controls which servers are allowed to actively pull data from your agent (passive mode).
  • ServerActive=: Define your Zabbix server’s address (plus optional port—default is 10051) here. This is where your agent will send data in active mode, or send traps/alerts.
  • Hostname=: Make sure this matches exactly the hostname you configured for this machine in your Zabbix server’s web interface. If they don’t match, the server won’t recognize the agent’s data.

Here’s an example of what those lines might look like after editing:

Server=192.168.1.50
ServerActive=192.168.1.50:10051
Hostname=MyMacWorkstation
Restarting the Agent to Apply Changes

Once you’ve saved the config, restart the Zabbix agent using Homebrew’s service manager:

brew services restart zabbix-agent

If you prefer to start it manually (instead of using the service), run:

sudo zabbix_agentd -c /usr/local/etc/zabbix/zabbix_agentd.conf
Verifying the Setup Works

To check if the agent is running properly locally, test a basic item query:

zabbix_agentd -t system.uname

You should get a response like system.uname [s|Darwin MyMacWorkstation 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_X86_64 x86_64].

After that, head to your Zabbix server’s web interface and check if the host shows up as "Available" in the host list.

内容的提问来源于stack exchange,提问作者Tolsadus

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 10:34:38