Fixed incorrect bash syntax

This commit is contained in:
Alexey Pustovalov 2023-08-21 17:53:29 +09:00
parent 9bd19e08da
commit a2cf923c2b
7 changed files with 6 additions and 28 deletions

View File

@ -152,11 +152,8 @@ prepare_zbx_agent_config() {
else
update_config_var $ZBX_AGENT_CONFIG "ServerActive"
fi
<<<<<<< HEAD
=======
update_config_var $ZBX_AGENT_CONFIG "HeartbeatFrequency" "${ZBX_HEARTBEAT_FREQUENCY}"
update_config_var $ZBX_AGENT_CONFIG "ForceActiveChecksOnStart" "${ZBX_FORCEACTIVECHECKSONSTART}"
>>>>>>> d4f6f4946 (Fixed missing and incorrect variables)
if [ "${ZBX_ENABLEPERSISTENTBUFFER,,}" == "true" ]; then
update_config_var $ZBX_AGENT_CONFIG "EnablePersistentBuffer" "1"

View File

@ -152,11 +152,8 @@ prepare_zbx_agent_config() {
else
update_config_var $ZBX_AGENT_CONFIG "ServerActive"
fi
<<<<<<< HEAD
=======
update_config_var $ZBX_AGENT_CONFIG "HeartbeatFrequency" "${ZBX_HEARTBEAT_FREQUENCY}"
update_config_var $ZBX_AGENT_CONFIG "ForceActiveChecksOnStart" "${ZBX_FORCEACTIVECHECKSONSTART}"
>>>>>>> d4f6f4946 (Fixed missing and incorrect variables)
if [ "${ZBX_ENABLEPERSISTENTBUFFER,,}" == "true" ]; then
update_config_var $ZBX_AGENT_CONFIG "EnablePersistentBuffer" "1"

View File

@ -152,11 +152,8 @@ prepare_zbx_agent_config() {
else
update_config_var $ZBX_AGENT_CONFIG "ServerActive"
fi
<<<<<<< HEAD
=======
update_config_var $ZBX_AGENT_CONFIG "HeartbeatFrequency" "${ZBX_HEARTBEAT_FREQUENCY}"
update_config_var $ZBX_AGENT_CONFIG "ForceActiveChecksOnStart" "${ZBX_FORCEACTIVECHECKSONSTART}"
>>>>>>> d4f6f4946 (Fixed missing and incorrect variables)
if [ "${ZBX_ENABLEPERSISTENTBUFFER,,}" == "true" ]; then
update_config_var $ZBX_AGENT_CONFIG "EnablePersistentBuffer" "1"

View File

@ -152,11 +152,8 @@ prepare_zbx_agent_config() {
else
update_config_var $ZBX_AGENT_CONFIG "ServerActive"
fi
<<<<<<< HEAD
=======
update_config_var $ZBX_AGENT_CONFIG "HeartbeatFrequency" "${ZBX_HEARTBEAT_FREQUENCY}"
update_config_var $ZBX_AGENT_CONFIG "ForceActiveChecksOnStart" "${ZBX_FORCEACTIVECHECKSONSTART}"
>>>>>>> d4f6f4946 (Fixed missing and incorrect variables)
if [ "${ZBX_ENABLEPERSISTENTBUFFER,,}" == "true" ]; then
update_config_var $ZBX_AGENT_CONFIG "EnablePersistentBuffer" "1"

View File

@ -152,11 +152,8 @@ prepare_zbx_agent_config() {
else
update_config_var $ZBX_AGENT_CONFIG "ServerActive"
fi
<<<<<<< HEAD
=======
update_config_var $ZBX_AGENT_CONFIG "HeartbeatFrequency" "${ZBX_HEARTBEAT_FREQUENCY}"
update_config_var $ZBX_AGENT_CONFIG "ForceActiveChecksOnStart" "${ZBX_FORCEACTIVECHECKSONSTART}"
>>>>>>> d4f6f4946 (Fixed missing and incorrect variables)
if [ "${ZBX_ENABLEPERSISTENTBUFFER,,}" == "true" ]; then
update_config_var $ZBX_AGENT_CONFIG "EnablePersistentBuffer" "1"

View File

@ -163,11 +163,8 @@ function Prepare-Zbx-Agent-Config {
else {
Update-Config-Var $ZbxAgentConfig "ServerActive"
}
<<<<<<< HEAD
=======
Update-Config-Var $ZbxAgentConfig "HeartbeatFrequency" "$env:ZBX_HEARTBEAT_FREQUENCY"
Update-Config-Var $ZbxAgentConfig "ForceActiveChecksOnStart" "$env:ZBX_FORCEACTIVECHECKSONSTART"
>>>>>>> d4f6f4946 (Fixed missing and incorrect variables)
if ([string]::IsNullOrWhitespace($env:ZBX_ENABLEPERSISTENTBUFFER)) {
$env:ZBX_ENABLEPERSISTENTBUFFER="true"

View File

@ -2,11 +2,7 @@
# ZBX_DEBUGLEVEL=3
# ZBX_ENABLEREMOTECOMMANDS=0 # Deprecated since 5.0.0
# ZBX_LOGREMOTECOMMANDS=0
<<<<<<< HEAD
=======
# ZBX_FORCEACTIVECHECKSONSTART=0 # Available since 6.0.2
# ZBX_HEARTBEAT_FREQUENCY=60 # Available since 6.2
>>>>>>> d4f6f4946 (Fixed missing and incorrect variables)
# ZBX_HOSTINTERFACE= # Available since 4.4.0
# ZBX_HOSTINTERFACEITEM= # Available since 4.4.0
# ZBX_SERVER_HOST=zabbix-server