-
-
Save vncloudsco/bd848d40d960b666936413bf4f8a7063 to your computer and use it in GitHub Desktop.
Install zabbix agent on Ubuntu trusty 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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