Skip to content

Instantly share code, notes, and snippets.

@carlosocarvalho
Last active August 1, 2017 15:31
Show Gist options
  • Save carlosocarvalho/a47312f50123b556d1c1d7c1fff79ddd to your computer and use it in GitHub Desktop.
Save carlosocarvalho/a47312f50123b556d1c1d7c1fff79ddd to your computer and use it in GitHub Desktop.
Instalar Zabbix Agent no Liunux Ubuntu/Debian
# Step 1 Install
sudo apt-get install zabbix-agent
# Step 2 Config agent.cnf
vim /etc/zabbix/zabbix_agentd.conf
# Step 3 add restart service
systemctl restatrt zabbix-agent
systemctl enable zabbix-agent
systemctl status zabbix-agent
# Step 4 Optimize swapefile
sudo dd if=/dev/zero of=/var/swapfile bs=1M count=2048
sudo chmod 600 /var/swapfile
sudo mkswap /var/swapfile
echo /var/swapfile none swap defaults 0 0 | sudo tee -a /etc/fstab
sudo swapon -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment