somme options on zabbix-agent install

This commit is contained in:
Bachir Soussi Chiadmi 2023-11-26 18:09:20 +01:00
parent cdcb034b6b
commit f6cfa57db6

View File

@ -41,8 +41,6 @@ echo -n "Please provide the zabbix-server's ip : "
read _ip
echo -n "Please provide the hostname of this agent : "
read _host_name
echo -n "Please provide the mysql root password : "
read _root_mysql_passwd
_agent_conf_d="/etc/zabbix/zabbix_agentd.d" # for debian 8
if [ ! -d "$_agent_conf_d" ]; then
@ -74,6 +72,9 @@ echo -n "monitor mysql? [Y|n] "
read yn
yn=${yn:-y}
if [ "$yn" = "Y" ] || [ "$yn" = "y" ]; then
echo -n "Please provide the mysql root password : "
read _root_mysql_passwd
mkdir /var/lib/zabbix
# generate random password for zabbix mysql user
_passwd="$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c12)"