We’ll need xcode for zabbix to compile on a Mac osx server (so once compiled you can skip this step, until and including the line “./configure –enable-agent”. Just copy the already compiled agent from an existing mac osx)
command-line tools:

Let’s create a startup script for zabbix (yes, i am aware it is “strange” to create a bash file, while i could copy paste the same command directly in the plist file, but i’ve seen, how can i say, various result with different mac os versions, it seems this works best overall on all mac os versions):

1

sudo nano/etc/startzabbix.sh

which says:

1

2

#!/bin/bash

/usr/local/sbin/zabbix_agentd

make it runnable:

1

sudo chmoda+x/etc/startzabbix.sh

Launch the launchctl file with (so you don’t need to reboot to test the plist, no sudo!): launchd /Library/LaunchAgents/org.macports.zabbix_agent.plist

Last: Make the host in zabbix and add the mac template on it.
Also don’t forget to open up port 10050 in the firewall of the mac osx server