mirror of
https://github.com/YunoHost-Apps/zabbix_ynh.git
synced 2024-09-03 20:36:14 +02:00
restart agent after timeout reconfig
This commit is contained in:
parent
5af820fd8e
commit
1b3f6466c9
1 changed files with 1 additions and 0 deletions
|
@ -107,6 +107,7 @@ fi
|
||||||
timeout_ok=$(grep -c "^Timeout" /etc/zabbix/zabbix_agentd.conf 2>/dev/null)
|
timeout_ok=$(grep -c "^Timeout" /etc/zabbix/zabbix_agentd.conf 2>/dev/null)
|
||||||
if [ $timeout_ok -ne 1 ] ;then
|
if [ $timeout_ok -ne 1 ] ;then
|
||||||
ynh_replace_string --match_string="# Timeout=3" --replace_string="# Timeout=3\nTimeout=10" --target_file=/etc/zabbix/zabbix_agentd.conf
|
ynh_replace_string --match_string="# Timeout=3" --replace_string="# Timeout=3\nTimeout=10" --target_file=/etc/zabbix/zabbix_agentd.conf
|
||||||
|
systemctl enable zabbix-agent && systemctl restart zabbix-agent
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue