Ad Widget

Collapse

Agent2 system.run error ZBX_TCP_READ() timed out

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brambo
    Senior Member
    • Jul 2023
    • 245

    #1

    Agent2 system.run error ZBX_TCP_READ() timed out

    On a host is have 3 system.run commands 2 of them run fine.
    The third one which takes about 6 seconds processing time gives the mentioned error.
    So in the zabbix_agent2.conf (windows agent) I set the timeout to Timeout=15
    Where the word Timeout start at the first characters of a new line.
    However when executing the the command from test option on host level I keep getting the error.
    The command i run =
    Code:
    system.run[powershell.exe -c "$UpdateSession = New-Object -ComObject Microsoft.Update.Session ; $UpdateSearcher = $UpdateSession.CreateupdateSearcher() ; $UpdateSearcher.Search('IsHidden=0 and IsInstalled=0').Updates | Select-Object -expandproperty Title", wait]
    First I expected that my agent2 version was mismatch with the server was a potential error but before posting this i made sure those are both the same version
    The error "error ZBX_TCP_READ() timed out" comes in about 3 to 4 seconds in the server Gui. When I make the powershell code faulty then I get an error output of the command so it does land on the host.
    Agent2 version 6.4.8, Server 6.4.8
  • Answer selected by Brambo at 15-11-2023, 15:52.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    There is a timeout option is server/proxy config too...

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #2
      There is a timeout option is server/proxy config too...

      Comment

      • Brambo
        Senior Member
        • Jul 2023
        • 245

        #3
        Changing the setting in the server as well did the trick

        Comment

        Working...