Ad Widget

Collapse

Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamyca17
    Junior Member
    • Aug 2017
    • 5

    #16
    Originally posted by andris
    So, Zabbix server or proxy successfully opens a TCP connection to agent to do a passive check (to get an item value).
    One possible reason - Zabbix agent closes connection because it comes from a host or IP address, not matching "Server=" parameter in zabbix_agentd.conf file.
    Another reason - if encryption is used - could be problems with TLS.
    Yet another reason - some network device (firewall?) between server and agent is disrupting communication.
    Thank you for this, andris.

    The problem has been solved. I had this checked by our firewall team earlier but replied "no firewall participation" since they seem to be both in the same segment.

    However, I noticed that traceroute shows additional 2 hops. And so it seems that there actually is firewall participation. Had it checked by the firewall team head and found that a policy that was recently applied did affect the Zabbix communication. He corrected everything and now it works fine.

    It was just mind boggling since telnet results were successful. Seems that telnet is not very very reliable and it doesn't hurt to ask the other team to double check. Hope this helps others who may have encountered the same.

    Comment

    • Argon0
      Member
      • Mar 2023
      • 51

      #17
      Hi, I'm struggling with this.

      I've got graphing working to host (let's call it Print_Server), getting Windows stats and everything that the Zabbix agent gathers by default.

      So I wanted to add a new item using
      wmi.getall[root\cimv2,"Select Name, Jobs, JobErrors, JobsSpooling, MaxJobsSpooling, TotalJobsPrinted, TotalPagesPrinted from Win32_PerfFormattedData_Spooler_PrintQueue | formattable"]
      But when I test the item I get the above error.

      All the WMI.gets I try to the zabbix agent fail similarly - (e.g. the counter of users logged in:
      wmi.getall[root\cimv2,select SessionId from Win32_Process where Name like '%explorer.exe%']


      Should I raise a fresh thread?

      Comment

      • Argon0
        Member
        • Mar 2023
        • 51

        #18
        Well, to start with, checking the log shows it can't accept unencrypted connections.. Why arent' tests using encryption? OK, so I'll turn off encryption for the moment.

        Comment

        Working...