Ad Widget

Collapse

Silent install Zabbix Agent2 Plugins on Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • StormScorpion
    Junior Member
    • Feb 2024
    • 22

    #1

    Silent install Zabbix Agent2 Plugins on Windows

    Hello, are there parameters to modify the silent install of Zabbix Agent2 plugins for Windows? I want to install the MSSQL plugin only.
    Code:
    zabbix_agent2_plugins-7.0.3-windows-amd64.msi /?
    only shows the generic options for install, not the Zabbix specific ones and I could not find them in the docs.
  • mat9048
    Junior Member
    • Sep 2024
    • 1

    #2
    Hi, "ADDLOCAL" should work.
    This is a snippet of my setup script:
    Code:
    [Version]$ZabbixVersion = (Get-Item -Path "$env:ProgramFiles\zabbix agent 2\zabbix_agent2.exe").VersionInfo.ProductVersion
    $ZabbixPluginDonwloadUrl = "https://cdn.zabbix.com/zabbix/binaries/stable/$($ZabbixVersion.Major).$($ZabbixVersion.Minor)/$($ZabbixVersion.Major).$($ZabbixVersion.Minor).$($ZabbixVersion.Build)/zabbix_agent2_plugins-$($ZabbixVersion.Major).$($ZabbixVersion.Minor).$($ZabbixVersion.Build)-windows-amd64.msi"
    $ZabbixPluginSetupPath = "$env:SystemRoot\temp\zabbix_agent2_plugins-same-as-zabbix-windows-amd64.msi"
    Invoke-WebRequest -Uri $ZabbixPluginDonwloadUrl -UseBasicParsing -OutFile $ZabbixPluginSetupPath
    Start-Process msiexec.exe -ArgumentList @("/qn","/i $ZabbixPluginSetupPath","ADDLOCAL=MongodbPlugin,MSIPackageFeature,PostgresqlPlugin,MssqlPlugin") -NoNewWindow -Wait
    Remove-Item -Path $ZabbixPluginSetupPath

    Comment

    Working...