updates
This commit is contained in:
@@ -2,9 +2,19 @@
|
|||||||
|
|
||||||
# installs the zabbix agent and configures it
|
# installs the zabbix agent and configures it
|
||||||
|
|
||||||
|
# create temp directory for downloaded files
|
||||||
|
DIRECTORY="/tmp/zabbix_install"
|
||||||
|
mkdir ${DIRECTORY}
|
||||||
|
|
||||||
|
# download the correct file for the correct OS
|
||||||
|
FILENAME="zabbix_repo.deb"
|
||||||
DEBIAN_URL="https://repo.zabbix.com/zabbix/3.5/debian/pool/main/z/zabbix-release/zabbix-release_3.5-1%2Bstretch_all.deb"
|
DEBIAN_URL="https://repo.zabbix.com/zabbix/3.5/debian/pool/main/z/zabbix-release/zabbix-release_3.5-1%2Bstretch_all.deb"
|
||||||
CENTOS_URL = "https://repo.zabbix.com/zabbix/3.5/rhel/7/x86_64/zabbix-release-3.5-1.el7.noarch.rpm"
|
#CENTOS_URL="https://repo.zabbix.com/zabbix/3.5/rhel/7/x86_64/zabbix-release-3.5-1.el7.noarch.rpm"
|
||||||
UBUNTU_URL = "https://repo.zabbix.com/zabbix/3.5/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.5-1%2Bbionic_all.deb"
|
#UBUNTU_URL="https://repo.zabbix.com/zabbix/3.5/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.5-1%2Bbionic_all.deb"
|
||||||
|
wget --output-document=${DIRECTORY}/${FILENAME} $DEBIAN_URL
|
||||||
|
|
||||||
|
# install the repo
|
||||||
|
dpkg -i ${DIRECTORY}/${FILENAME}
|
||||||
|
|
||||||
ZABBIX_SERVER="gauntzabbix.home.johnhgaunt.com"
|
ZABBIX_SERVER="gauntzabbix.home.johnhgaunt.com"
|
||||||
|
|
||||||
@@ -15,7 +25,7 @@ apt update
|
|||||||
apt install zabbix-agent
|
apt install zabbix-agent
|
||||||
|
|
||||||
# ask for the hostname
|
# ask for the hostname
|
||||||
read -p 'Hostname: ' hostname
|
read -e -p "Enter Hostname: " -i "$(cat /etc/hostname)" hostname
|
||||||
|
|
||||||
sed -i 's/Hostname=Zabbix\ server/Hostname=${hostname}/' /etc/zabbix/zabbix_agentd.conf
|
sed -i 's/Hostname=Zabbix\ server/Hostname=${hostname}/' /etc/zabbix/zabbix_agentd.conf
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user