Skip to content

Instantly share code, notes, and snippets.

@syntaxerrormmm
Created November 20, 2019 17:23
Show Gist options
  • Save syntaxerrormmm/a24a432bb4f65efe8ae9efd6d9559ebd to your computer and use it in GitHub Desktop.
Save syntaxerrormmm/a24a432bb4f65efe8ae9efd6d9559ebd 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