Install Zabbix Agent on a Mac OSX Behind a Firewall
In this lecture I install and configure Zabbix Agent to run on a Mac OSX.
The mac is behind a firewall, so Zabbix Server cannot connect to it directly, so I also create a specific firewall rule.
My router is already forwarding external requests to 10050 to my other internal Zabbix Agent host, so I use a new port 10052 that will re point to the Macs internal IP and Port to the default Zabbix Agent port 10050.
In later videos I will demonstrate using Zabbix Proxy which does not require a new firewall rule to be created for each individual new host in order for it to receive Passive checks from the Zabbix Server.
After installing the Zabbix Agent on Mac OSX, you will need to configure it's configuration file using
sudo nano /usr/local/etc/zabbix/zabbix_agentd.conf
edit the Server, ServerActive and Hostname parameters and save.
Then create the host on Zabbix Server, create the firewall rule,
then restart the Zabbix Agent process on the Mac.
The commands to restart Zabbix Agent on the Mac OSX are,
sudo launchctl unload /Library/LaunchDaemons/com.zabbix.zabbix_agentd.plist
sudo launchctl load /Library/LaunchDaemons/com.zabbix.zabbix_agentd.plist
Go back to the Zabbix Server and it should now find the agent on the Mac.