1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zabbix_ynh.git synced 2024-09-03 20:36:14 +02:00

change timeout zabbix agent

This commit is contained in:
Mickael-Martin 2019-04-11 23:14:32 +02:00
parent 7f876ea2f9
commit 386adc6407

View file

@ -302,6 +302,8 @@ sed -i "s/DBName=zabbix/DBName=$db_name/g" /etc/zabbix/zabbix_server.conf
sed -i "s/DBUser=zabbix/DBUser=$db_user/g" /etc/zabbix/zabbix_server.conf sed -i "s/DBUser=zabbix/DBUser=$db_user/g" /etc/zabbix/zabbix_server.conf
sed -i "126a DBPassword=$db_pwd" /etc/zabbix/zabbix_server.conf sed -i "126a DBPassword=$db_pwd" /etc/zabbix/zabbix_server.conf
ynh_replace_string --match_string="# Timeout=3" --replace_string="# Timeout=3\nTimeout=10" --target_file=/etc/zabbix/zabbix_agentd.conf
systemctl enable zabbix-server && systemctl start zabbix-server systemctl enable zabbix-server && systemctl start zabbix-server
#================================================= #=================================================