Configure zabbix_agent on macOS High Sierra According to Zabbix agent installation, you can install just the zabbix-agent on macOS with brew install zabbix --without-server-proxy

Nothing explained how to configure the agent, tells him where to send the information ? Is there any configuration file located somewhere ? 

There are some files in /usr/local/Cellar/zabbix/&lt;version number&gt;/ but nothing similar to a .conf.
Checking brew installer or configure/make messages often help to determine where files and folders are stored or how and where to configure services or apps:

Example output after installing the required dependencies:

...
==&gt; Installing zabbix --without-server-proxy
==&gt; Downloading https://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.4.7/zabbix-3.4.7.tar.gz
==&gt; Downloading from https://10gbps-io.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.4.7/zabbix-3.4.7.tar.gz
######################################################################## 100.0%
==&gt; ./configure --prefix=/usr/local/Cellar/zabbix/3.4.7 --sysconfdir=/usr/local/etc/zabbix --enable-agent --with-iconv=/Applications/
==&gt; make install
  /usr/local/Cellar/zabbix/3.4.7: 13 files, 1.4MB, built in 1 minute 31 seconds


One ./configure flag of zabbix is --sysconfdir=/usr/local/etc/zabbix.

Consequently the configuration file(s) and folders (i.e. zabbix_agentd.conf.d) can be found here:

/usr/local/etc/zabbix/


Additional zabbix* man files can be found here:

/usr/local/share/man/man1/
/usr/local/share/man/man8/




Additional steps to perform:


Add /usr/local/sbin to your path. Some brew-installed binaries are installed to this folder (e.g. dnsmasq or zabbix)
Get the zabbix agent to launch at boot time with a launch daemon/agent. I haven't found one accompanying the brew-installed zabbix. 

Several can be found at github though:


com.zabbix.zabbix_agentd.plist (the config dir in the plist has to be modified though).
zabbix_agentd_osx_installer (either the UserName/GroupName keys have to removed or a User and Group each with the name zabbix have to be added as special user/group with dscl or the Users &amp; Groups prefpane though or the daemon will fail)

The older zabbix 2.2.5 installer uses the following postinstall script to add a zabbix user &amp; group/modify files and folders:

#!/usr/bin/env bash

#To create a group:
sudo dscl /Local/Default -create /Groups/zabbix
sudo dscl /Local/Default -create /Groups/zabbix PrimaryGroupID 113
sudo dscl /Local/Default -create /Groups/zabbix Password \*

#To create a user:
sudo dscl /Local/Default -create /Users/zabbix
sudo dscl /Local/Default -create /Users/zabbix UniqueID 113
sudo dscl /Local/Default -create /Users/zabbix UserShell /usr/bin/false
sudo dscl /Local/Default -create /Users/zabbix RealName 'Zabbix user'
sudo dscl /Local/Default -create /Users/zabbix NFSHomeDirectory /var/empty 
sudo dscl /Local/Default -create /Users/zabbix PrimaryGroupID 113
sudo dscl /Local/Default -create /Users/zabbix Password \*

#Create needed directories 
sudo mkdir -p /var/run/zabbix-agent
sudo mkdir -p /var/log/zabbix-agent
sudo mkdir -p /usr/local/bin
sudo mkdir -p /usr/local/sbin
sudo mkdir -p /usr/local/etc/zabbix

sudo chown -Rf zabbix:zabbix /var/run/zabbix-agent
sudo chown -Rf zabbix:zabbix /var/log/zabbix-agent

sudo chown root:wheel /Library/LaunchDaemons/com.zabbix.zabbix_agentd.plist
sudo chown root:wheel /usr/local/etc/zabbix/zabbix_agentd.conf
sudo chown root:wheel /usr/local/etc/zabbix_agentd.conf

sudo chown -Rf root:wheel /usr/local/sbin
sudo chown -Rf root:wheel /usr/local/bin
sudo chmod -Rf 755 /usr/local/bin
sudo chmod -Rf 755 /usr/local/sbin

sudo chmod 755 /usr/local/etc/zabbix
#sudo kill -9 `ps aux | grep zabbix_agentd | cut -f11 -d" "`
#sudo kill -9 `ps -aef | grep zabbix_agentd | grep -v grep | awk '{print $2}'`
#sudo rm -Rf /tmp/zabbix*


It's not recommended to execute all these steps but the script may serve as an example how to get it to work. Some have already been executed by installing zabbix with brew (e.g. some sudo mkdir ... commands). Some aren't necessary (e.g. some sudo chown root:wheel ... commands) or will even break brew (e.g. sudo chown -Rf root:wheel /usr/local/bin). If you choose to create a zabbix user/group, make sure that the user can read, write and execute files in the /usr/local/etc|sbin|bin branches.


Move the edited plist file to /Library/LaunchDaemons/ and load it - after editing the zabbix config file - with:

sudo launchctl load /Library/LaunchDaemons/com.zabbix.zabbix_agentd.plist