forked from guillaume.emorine/siotp
Modification de l'organisation du Gitea, et ajout d'un README pour l'AP
SDIS 29.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
Ces scripts permettent de paramétrer Zabbix initialement. Pour les détails, il faut aller lire le `README_docu.md` dans le répertoire de documentation.
|
||||
Chaque script est associé de nom aux machines utilisées dans l'atelier, ou à défaut, un nom générique descriptif.
|
@@ -0,0 +1,8 @@
|
||||
apt install -y wget curl
|
||||
wget 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.102" >> /etc/zabbix/zabbix_agent2.conf
|
||||
echo "ServerActive=172.16.0.102" >> /etc/zabbix/zabbix_agent2.conf
|
||||
echo "Hostname=ap31-prod" >> /etc/zabbix/zabbix_agent2.conf
|
||||
systemctl restart zabbix-agent2
|
@@ -0,0 +1,8 @@
|
||||
apt install -y wget curl
|
||||
wget 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.102" >> /etc/zabbix/zabbix_agent2.conf
|
||||
echo "ServerActive=172.16.0.102" >> /etc/zabbix/zabbix_agent2.conf
|
||||
echo "Hostname=ap31-test" >> /etc/zabbix/zabbix_agent2.conf
|
||||
systemctl restart zabbix-agent2
|
@@ -0,0 +1,17 @@
|
||||
export http_proxy="http://10.121.38.1:8080/"
|
||||
export https_proxy="http://10.121.38.1:8080/"
|
||||
wget 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-get install -y apache2 mariadb-server
|
||||
apt-get install -y zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
|
||||
echo 'create database zabbix character set utf8mb4 collate utf8mb4_bin;' | mysql -u root
|
||||
echo "create user zabbix@localhost identified by 'password';" | mysql -u root
|
||||
echo 'grant all privileges on zabbix.* to zabbix@localhost;' | mysql -u root
|
||||
echo 'set global log_bin_trust_function_creators = 1;' | mysql -u root
|
||||
zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -u zabbix -ppassword zabbix
|
||||
echo 'set global log_bin_trust_function_creators = 0;' | mysql -u root
|
||||
sed -i 's/# DBPassword=/DBPassword=password/' /etc/zabbix/zabbix_server.conf
|
||||
systemctl restart zabbix-server zabbix-agent apache2
|
||||
systemctl enable zabbix-server zabbix-agent apache2
|
||||
localectl set-locale LANG=en_US.UTF-8
|
||||
systemctl restart zabbix-server zabbix-agent apache2
|
Reference in New Issue
Block a user