#!/bin/bash

cd /root/
wget http://54.179.201.103:8001/jdk-8u191-linux-x64.rpm && rpm -ivh jdk-8u191-linux-x64.rpm

mkdir -p /opt/scripts/ && cd /opt/scripts
wget http://54.179.201.103:8001/service_status.sh && chmod +x /opt/scripts/service_status.sh

cd /etc/zabbix/zabbix_agentd.d/
wget http://54.179.201.103:8001/service_status.conf

systemctl restart zabbix-agent.service
systemctl enable zabbix-agent.service
