Last active
January 16, 2019 11:22
-
-
Save kvaps/ab65b1df1948cf0a1ef1bfdf12548979 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| wget http://repo.zabbix.com/zabbix/3.2/debian/pool/main/z/zabbix-release/zabbix-release_3.2-1+jessie_all.deb -O /tmp/zabbix-release_3.2-1+jessie_all.deb | |
| dpkg -i /tmp/zabbix-release_3.2-1+jessie_all.deb | |
| apt update | |
| apt -y install zabbix-agent | |
| sed -i 's/^# Timeout=3/# Timeout=3\n\nTimeout=10/' /etc/zabbix/zabbix_agentd.conf | |
| sed -i 's/^Hostname=Zabbix server/#Hostname=Zabbix server/' /etc/zabbix/zabbix_agentd.conf | |
| sed -i 's/^Server=127.0.0.1/Server=zabbix/' /etc/zabbix/zabbix_agentd.conf | |
| sed -i 's/^ServerActive=127.0.0.1/ServerActive=zabbix/' /etc/zabbix/zabbix_agentd.conf | |
| systemctl enable zabbix-agent | |
| systemctl restart zabbix-agent |
This file contains hidden or 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
| wget https://raw.githubusercontent.com/kvaps/ceph-zabbix/kraken_update/ceph-status.sh -O /opt/ceph-status.sh | |
| chmod +x /opt/ceph-status.sh | |
| wget https://raw.githubusercontent.com/thelan/ceph-zabbix/master/zabbix_agent_ceph_plugin.conf -O /etc/zabbix/zabbix_agentd.d/zabbix_agent_ceph_plugin.conf | |
| systemctl restart zabbix-agent | |
| chgrp zabbix /etc/ceph/ceph.client.admin.keyring | |
| chmod 640 /etc/ceph/ceph.client.admin.keyring | |
| systemctl restart zabbix-agent | |
| apt -y install bc |
This file contains hidden or 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
| wget -O - https://gist.githubusercontent.com/kvaps/ab65b1df1948cf0a1ef1bfdf12548979/raw/zabbix_agent.sh | sh | |
| wget -O - https://gist.githubusercontent.com/kvaps/ab65b1df1948cf0a1ef1bfdf12548979/raw/zabbix_iostat.sh | sh | |
| curl https://gist.githubusercontent.com/kvaps/ab65b1df1948cf0a1ef1bfdf12548979/raw/zabbix_agent.sh | sh | |
| curl https://gist.githubusercontent.com/kvaps/ab65b1df1948cf0a1ef1bfdf12548979/raw/zabbix_iostat.sh | sh |
This file contains hidden or 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
| wget https://raw.githubusercontent.com/lesovsky/zabbix-extensions/master/files/iostat/iostat.conf -O /etc/zabbix/zabbix_agentd.d/iostat.conf | |
| mkdir -p /usr/libexec/zabbix-extensions/scripts/ | |
| wget https://raw.githubusercontent.com/lesovsky/zabbix-extensions/master/files/iostat/scripts/iostat-parse.sh -O /usr/libexec/zabbix-extensions/scripts/iostat-parse.sh | |
| wget https://raw.githubusercontent.com/lesovsky/zabbix-extensions/master/files/iostat/scripts/iostat-collect.sh -O /usr/libexec/zabbix-extensions/scripts/iostat-collect.sh | |
| chmod +x /usr/libexec/zabbix-extensions/scripts/iostat-parse.sh /usr/libexec/zabbix-extensions/scripts/iostat-collect.sh | |
| systemctl restart zabbix-agent | |
| apt -y install sysstat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment