Skip to content

Instantly share code, notes, and snippets.

@tomfanning
Last active March 23, 2019 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tomfanning/4af3fc51b6a84bf68bd63b6fef22eb2a to your computer and use it in GitHub Desktop.
Save tomfanning/4af3fc51b6a84bf68bd63b6fef22eb2a to your computer and use it in GitHub Desktop.
Install zabbix agent on Ubuntu trusty 14.04
#!/bin/sh -e
echo "Setting up Zabbix agent"
wget --quiet http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+trusty_all.deb
dpkg -i zabbix-release_3.2-1+trusty_all.deb
rm zabbix-release_3.2-1+trusty_all.deb
apt-get update --quiet > /dev/null
apt-get install zabbix-agent -y --quiet > /dev/null
echo "PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=10
Server=zabbix
ServerActive=zabbix
HostnameItem=system.hostname
Include=/etc/zabbix/zabbix_agentd.d/*.conf" > /etc/zabbix/zabbix_agentd.conf
service zabbix-agent restart
echo "Done installing Zabbix agent"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment