From 4712c0edf55e7c938560e6192bd2cb497bddf268 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 29 Apr 2020 00:32:44 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20freesms=20=C3=A0=20l'initialisatio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zabbix/init_zabbix.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zabbix/init_zabbix.sh b/zabbix/init_zabbix.sh index cc009d0..57d1d45 100755 --- a/zabbix/init_zabbix.sh +++ b/zabbix/init_zabbix.sh @@ -15,6 +15,10 @@ zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u${DB_USER} -p${ echo "DBPassword=${DB_PASSWORD}" >> /etc/zabbix/zabbix_server.conf.d/db.conf sed "s@^\$DB['PASSWORD'].*$@\$DB['PASSWORD'] = \'${DB_PASSWORD}\';@g" /usr/share/zabbix/conf/zabbix.conf.php.example > /etc/zabbix/web/zabbix.conf.php +wget -qO /usr/bin/freesms https://gitlab.blorand.org/benoit/helper-scripts/raw/branch/master/sms/freesms +wget -Qo /usr/lib/zabbix/alertscripts/freesms https://gitlab.blorand.org/benoit/helper-scripts/raw/branch/master/sms/freesms.zabbix_alert_script +chmod +x /usr/lib/zabbix/alertscripts/freesms /usr/bin/freesms + systemctl --now enable zabbix-server zabbix-agent nginx php7.3-fpm systemctl --now mask zabbix-init.service