Skip to content

Instantly share code, notes, and snippets.

@vncloudsco
Forked from tomfanning/install-zabbix-agent.sh
Created March 23, 2019 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vncloudsco/bd848d40d960b666936413bf4f8a7063 to your computer and use it in GitHub Desktop.
Save vncloudsco/bd848d40d960b666936413bf4f8a7063 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