From 0c83a5b3ea12ee091ee7d0dd855a1132e875b080 Mon Sep 17 00:00:00 2001 From: Adam Alphonso Date: Thu, 7 Nov 2024 12:02:03 +0100 Subject: [PATCH] =?UTF-8?q?=09nouveau=20fichier=C2=A0:=20ap32-prod/zabbix-?= =?UTF-8?q?agent.sh=20=09nouveau=20fichier=C2=A0:=20ap32-test/zabbix-agent?= =?UTF-8?q?.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ap32-prod/zabbix-agent.sh | 10 ++++++++++ ap32-test/zabbix-agent.sh | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 ap32-prod/zabbix-agent.sh create mode 100644 ap32-test/zabbix-agent.sh diff --git a/ap32-prod/zabbix-agent.sh b/ap32-prod/zabbix-agent.sh new file mode 100644 index 0000000..da3e9b6 --- /dev/null +++ b/ap32-prod/zabbix-agent.sh @@ -0,0 +1,10 @@ +#!/bin/bash +export http_proxy=http://10.121.38.1:8080 +export https_proxy=https://10.121.38.1:8080 +wget -4 https://repo.zabbix.com/zabbix/7.0/debian/pool/main/z/zabbix-release/zabbix-release_7.0-2+debian12_all.deb +dpkg -i zabbix-release_7.0-2+debian12_all.deb +apt install -y zabbix-agent2 +echo "Server=172.16.0.112" >> /etc/zabbix/zabbix_agent2.conf +echo "ServerActive=172.16.0.112" >> /etc/zabbix/zabbix_agent2.conf +echo "Hostname=$(hostname)" >> /etc/zabbix/zabbix_agent2.conf +systemctl restart zabbix-agent2 diff --git a/ap32-test/zabbix-agent.sh b/ap32-test/zabbix-agent.sh new file mode 100644 index 0000000..da3e9b6 --- /dev/null +++ b/ap32-test/zabbix-agent.sh @@ -0,0 +1,10 @@ +#!/bin/bash +export http_proxy=http://10.121.38.1:8080 +export https_proxy=https://10.121.38.1:8080 +wget -4 https://repo.zabbix.com/zabbix/7.0/debian/pool/main/z/zabbix-release/zabbix-release_7.0-2+debian12_all.deb +dpkg -i zabbix-release_7.0-2+debian12_all.deb +apt install -y zabbix-agent2 +echo "Server=172.16.0.112" >> /etc/zabbix/zabbix_agent2.conf +echo "ServerActive=172.16.0.112" >> /etc/zabbix/zabbix_agent2.conf +echo "Hostname=$(hostname)" >> /etc/zabbix/zabbix_agent2.conf +systemctl restart zabbix-agent2