- ajout de l ip par defaut pour zabbix
This commit is contained in:
parent
ec375078f4
commit
2afe6f9205
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
# shellcheck disable=SC2034
|
||||
|
||||
# ZABBIX CLIENT INSTALLATION
|
||||
CONFIG_DEB_INSTALL_SERVER_IP="192.168.0.4"
|
||||
# CA INSTALLATION
|
||||
CONFIG_DEB_INSTALL_DEFAULT_CA_SERVER="192.168.0.110"
|
||||
CONFIG_DEB_INSTALL_DEFAULT_CA_WILDCARD="*.server.home"
|
||||
|
|
|
|||
|
|
@ -398,7 +398,9 @@ do_deb_sys_apparmor(){
|
|||
}
|
||||
|
||||
do_deb_sys_zabbix(){
|
||||
read -rp "IP Zabbix : " ip;
|
||||
local ip
|
||||
read -rp "IP Zabbix [${CONFIG_DEB_INSTALL_SERVER_IP}]: " ip;
|
||||
ip=${ip:-${CONFIG_DEB_INSTALL_SERVER_IP}}
|
||||
$SUDO apt-get install -y zabbix-agent;
|
||||
$SUDO sed -i "s/^Server=127.0.0.1/Server=$ip/" /etc/zabbix/zabbix_agentd.conf;
|
||||
$SUDO systemctl restart zabbix-agent
|
||||
|
|
|
|||
Loading…
Reference in New Issue