Ad Widget

Collapse

Zabbix Agent 2 - 6.0.31 Windows - Disk full: Out of disk space

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tomstocker
    Junior Member
    • Jan 2024
    • 16

    #1

    Zabbix Agent 2 - 6.0.31 Windows - Disk full: Out of disk space

    Hi Zabbix users

    zabbix_agent2-6.0.31-windows-amd64-openssl.msi it has installed once, since then it fails all the time with this error in eventlog:

    Product: Zabbix Agent 2 (64-bit) -- Disk full: Out of disk space -- Volume: '%INSTALLFOLDER%'; required space: 25’550 KB; available space: 0 KB. Free some disk space and retry.

    Windows Server 2022, latest updates applied, enough diskspace. Searched through the Registry too, only reference is the firewall rule. Cleared %TEMP%. Checked for NtfsDisable8dot3NameCreation which is enabled. Redeployed the server VM. Gave more disk space. Still the same, after re-deploying it is even not installing a single time.

    mkdir "C:\Program Files\Zabbix Agent 2"
    SET INSTALLFOLDER="C:\Program Files\Zabbix Agent 2"
    msiexec /l*v log.txt /i c:\temp\zabbix_agent2.msi /qn SERVER=xxx SERVERACTIVE=xxx HOSTMETADATA="xxx" LISTENPORT=10050 HOSTNAME=myHost ENABLEPATH=1 INSTALLFOLDER="%INSTALLFOLDER%" SKIP=fw ALLOWDENYKEY="DenyKey=vfs.file.contents[/etc/passwd]"
    netsh advfirewall firewall add rule name="Zabbix_Agentd" dir=in action=allow protocol=TCP localport=10050 remoteip=xxx

    any clue what is wrong with msiexec? It installs if I click through the installer. I'm out of ideas.

    update

    same with:
    - zabbix_agent2-6.2.9-windows-amd64-openssl.msi
    - zabbix_agent2-6.4.16-windows-amd64-openssl.msi
    - zabbix_agent2-7.0.0-windows-amd64-openssl.msi

    https://learn.microsoft.com/en-us/tr...ion-error-1603 didn't help either
    Last edited by tomstocker; 03-07-2024, 09:07.
  • Answer selected by tomstocker at 05-07-2024, 15:15.
    tomstocker
    Junior Member
    • Jan 2024
    • 16

    We did develop a windows script that actually works:

    Make sure to never use spaces in Variables!

    You can choose between Zabbix Agent and Zabbix Agent 2:

    $SERVER="<yourzabbixdnsservername>"
    #hostmetadata if needed for eg autoregistration
    $HOSTMETADATA="<yourmetadata>"
    $LISTENPORT=10050
    $serveraddr = [System.Net.Dns]::gethostaddresses("$SERVER") | ForEach-Object {Write-Output $_.IPAddressToString}
    # create download folder
    New-Item -Path C:\Zabbix -ItemType "directory"
    # download zabbix agent
    #Invoke-WebRequest -Uri https://cdn.zabbix.com/zabbix/binari...64-openssl.msi -Outfile C:\Zabbix\zabbix.msi
    # download zabbix agent 2
    Invoke-WebRequest -Uri https://cdn.zabbix.com/zabbix/binari...64-openssl.msi -Outfile C:\Zabbix\zabbix.msi
    # create firewall rule
    netsh advfirewall firewall add rule name="Zabbix_Agent" dir=in action=allow protocol=TCP localport=10050 remoteip=$serveraddr
    # install zabbix agent
    msiexec /l*v log.txt /i C:\Zabbix\zabbix.msi /qn SERVER=$SERVER SERVERACTIVE=$SERVER HOSTNAME=$HOSTNAME HOSTMETADATA=$HOSTMETADATA LISTENPORT=$LISTENPORT ENABLEPATH=1 SKIP=fw
    # wait for install
    Start-Sleep -Seconds 5
    # delete download folder
    Remove-Item -Path C:\Zabbix -Recurse -Force

    Comment

    • tomstocker
      Junior Member
      • Jan 2024
      • 16

      #2
      We did develop a windows script that actually works:

      Make sure to never use spaces in Variables!

      You can choose between Zabbix Agent and Zabbix Agent 2:

      $SERVER="<yourzabbixdnsservername>"
      #hostmetadata if needed for eg autoregistration
      $HOSTMETADATA="<yourmetadata>"
      $LISTENPORT=10050
      $serveraddr = [System.Net.Dns]::gethostaddresses("$SERVER") | ForEach-Object {Write-Output $_.IPAddressToString}
      # create download folder
      New-Item -Path C:\Zabbix -ItemType "directory"
      # download zabbix agent
      #Invoke-WebRequest -Uri https://cdn.zabbix.com/zabbix/binari...64-openssl.msi -Outfile C:\Zabbix\zabbix.msi
      # download zabbix agent 2
      Invoke-WebRequest -Uri https://cdn.zabbix.com/zabbix/binari...64-openssl.msi -Outfile C:\Zabbix\zabbix.msi
      # create firewall rule
      netsh advfirewall firewall add rule name="Zabbix_Agent" dir=in action=allow protocol=TCP localport=10050 remoteip=$serveraddr
      # install zabbix agent
      msiexec /l*v log.txt /i C:\Zabbix\zabbix.msi /qn SERVER=$SERVER SERVERACTIVE=$SERVER HOSTNAME=$HOSTNAME HOSTMETADATA=$HOSTMETADATA LISTENPORT=$LISTENPORT ENABLEPATH=1 SKIP=fw
      # wait for install
      Start-Sleep -Seconds 5
      # delete download folder
      Remove-Item -Path C:\Zabbix -Recurse -Force

      Comment

      • tomstocker
        Junior Member
        • Jan 2024
        • 16

        #3
        cannot edit anymore.

        netsh advfirewall firewall add rule name="Zabbix_Agent" dir=in action=allow protocol=TCP localport=$LISTENPORT remoteip=$serveraddr

        would be better.

        Comment

        Working...