updated server ip and server active lines to not use proxy path
This commit is contained in:
parent
6f3636ed82
commit
55a394d564
@ -81,8 +81,8 @@ if ($AUTO_CREATE_HOST -eq "Y" -or $AUTO_CREATE_HOST -eq "y")
|
||||
|
||||
# Edit settings to match Q&A above
|
||||
$CONF_PATH = "$env:ProgramFiles\Zabbix\conf\zabbix_agentd.conf"
|
||||
(Get-Content -Path $CONF_PATH) -Replace "^Server=.*$","Server=$PROXY_IP" | Set-Content -Path $CONF_PATH
|
||||
(Get-Content -Path $CONF_PATH) -Replace "^ServerActive=.*$","ServerActive=$PROXY_IP" | Set-Content -Path $CONF_PATH
|
||||
(Get-Content -Path $CONF_PATH) -Replace "^Server=.*$","Server=zabbix.futuresens.co.uk" | Set-Content -Path $CONF_PATH
|
||||
(Get-Content -Path $CONF_PATH) -Replace "^ServerActive=.*$","ServerActive=zabbix.futuresens.co.uk" | Set-Content -Path $CONF_PATH
|
||||
(Get-Content -Path $CONF_PATH) -Replace "^Hostname=.*$","Hostname=$HOSTNAME" | Set-Content -Path $CONF_PATH
|
||||
(Get-Content -Path $CONF_PATH) -Replace "^# EnableRemoteCommands=.*","EnableRemoteCommands=$ALLOW_REMOTE_COMMANDS" | Set-Content -Path $CONF_PATH
|
||||
(Get-Content -Path $CONF_PATH) -Replace "^# LogRemoteCommands=.*","LogRemoteCommands=$ALLOW_REMOTE_COMMANDS" | Set-Content -Path $CONF_PATH
|
||||
|
Loading…
x
Reference in New Issue
Block a user