Skip to content

Instantly share code, notes, and snippets.

@syntaxerrormmm
Created November 20, 2019 17:23
Show Gist options
  • Save syntaxerrormmm/7b9b0082038e3b7cef7297718bbe6e31 to your computer and use it in GitHub Desktop.
Save syntaxerrormmm/7b9b0082038e3b7cef7297718bbe6e31 to your computer and use it in GitHub Desktop.
#!/bin/bash
/bin/sed -i -e "s/^Server=.*$/Server=127.0.0.1/" /etc/zabbix/zabbix_agentd.conf
/bin/sed -i -e "s/^ServerActive=.*$/ServerActive=127.0.0.1/" /etc/zabbix/zabbix_agentd.conf
/bin/systemctl restart zabbix-agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment