Last active
October 23, 2015 22:20
-
-
Save zembutsu/66e3803a26a9412b6467 to your computer and use it in GitHub Desktop.
SoftLayer Provisionign Script. To set up zabbix_agent.exe ( Zabbix Agent Service ) 64bit edition.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup directory and download | |
mkdir c:\zabbix | |
cd c:\zabbix | |
bitsadmin.exe /transfer "zabbix-agent" http://www.zabbix.com/downloads/2.4.1/zabbix_agents_2.4.1.win.zip "c:\zabbix\zabbix_agents_2.4.1.win.zip" | |
# unzip archive | |
Add-Type -Path "C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.IO.Compression.FileSystem\v4.0_4.0.0.0__b77a5c561934e089\System.IO.Compression.FileSystem.dll" | |
[System.IO.Compression.ZipFile]::ExtractToDirectory("c:\zabbix\zabbix_agents_2.4.1.win.zip", "C:\zabbix\") | |
# setup zabbix | |
#cp c:\zabbix\conf\zabbix_agentd.win.conf c:\zabbix\conf\zabbix_agentd.conf | |
Get-Content c:\zabbix\conf\zabbix_agentd.win.conf | % { $_ -replace "Server=127.0.0.1","Server=153.121.40.37" } | Set-Content c:\zabbix\conf\zabbix_agentd.conf | |
c:\zabbix\bin\win64\zabbix_agentd.exe --config c:\zabbix\conf\zabbix_agentd.conf --install | |
c:\zabbix\bin\win64\zabbix_agentd.exe --start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment