Ad Widget

Collapse

Zabbix Agent 2 Service stops/crashes when there is more than one server listed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AndyLee_551
    Junior Member
    • May 2025
    • 10

    #1

    Zabbix Agent 2 Service stops/crashes when there is more than one server listed

    Hi All,
    Using Zabbix Agent 2 7.4

    I am having an issue with Zabbix Agent 2 service stopping/crashing constantly when I am listing more than one Zabbix Server in the config file. What I mean by this is the service just stops running and needs to be restarted again.
    My hosts are all Windows Server Datacentre/Standard 2022 and I am using a default config besides specifying the debug level of 5, increasing log file size limit and adding my servers into the passive and active checks.

    The logs don't show any errors and just simply just stops logging, it seems that it almost always stops running when trying to perform a variant of /"executed direct exporter task for key 'perf_counter_en" for example.
    Example Crash
    2025/08/07 20:35:04.203938 executed direct exporter task for key 'perf_counter_en[[\Processor Information(_total)\% Interrupt Time]]'
    2025/08/07 20:35:04.211147 executed direct exporter task for key 'proc.num[[]]'
    2025/08/07 20:35:04.221595 executed direct exporter task for key 'wmi.get[[root/cimv2 Select NumberOfLogicalProcessors from Win32_ComputerSystem]]'

    Example Crash
    2025/08/20 22:08:48.863267 parsed performance counter \System\Processor Queue Length
    2025/08/20 22:08:48.863267 executed direct exporter task for key 'perf_counter_en[[\System\Processor Queue Length]]'
    2025/08/20 22:08:48.879740 executed direct exporter task for key 'proc.num[[]]'

    From my understanding, Server is passive checks and ServerActive is active checks.
    I have tested having only one zabbix server in passive checks as well as active checks and the agent runs fine with no issues, but as soon as I list the second zabbix server in those fields, the agent service will eventually stop running.
    They are listed separated by a comma for example
    Server=Server1,Server2

    I have also tested listing both servers in passive checks only but the agent still crashes.
    The strange thing is that not all hosts have this issue and only 2-3 hosts are continuously crashing.
    We are not using proxies.

    Has anyone run into this issue before? Does anyone else run two zabbix servers and have the same hosts reporting to both?

    Anyone advice would be appreciated, happy to provide logs if it will help.


  • Roberto Machado
    Junior Member
    • Jun 2020
    • 11

    #2
    I migrated from version 7.0.16 to 7.4.0. It's working normally.

    I updated to version 7.4.1. I noticed that some servers were having Agent 2 stop and start, but nothing in the logs indicated the problem. I thought it was a problem with version 7.4.1.

    The problem persists with version 7.4.2.

    I stopped the service, copied the files from version 7.4.0, started it, and it's working correctly.

    The agents in versions 7.4.1 and 7.4.2 are experiencing problems.

    Comment

    • AndyLee_551
      Junior Member
      • May 2025
      • 10

      #3
      Hi Roberto,

      I'll definitely give that a try and I will get back to you.

      I forgot to mention that I was on 7.4.1 and had issues, upgraded to 7.4.2 and the same issues occurred so I am quite hopeful about this.

      Really appreciate you sharing your experience, hopefully this works for me as well.

      Comment

      • AndyLee_551
        Junior Member
        • May 2025
        • 10

        #4
        Hi All,
        Looks like it has nothing to do with multiple servers but instead, the new zabbix server that I have set up. When I have set the parameters to only point to my second server (New zabbix server) the agent still crashes.
        I assume it is a template issue of some sort as the new server is using different templates to the old server.
        The server is on version 7.4.0
        The templates being used range from 7.4.0 to 7.4.5
        I will do more testing and come back to this.


        Comment

        Working...