Ad Widget

Collapse

Zabbix Agent 2 on Windows and active checks

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • guille.rodriguez
    Senior Member
    • Jun 2022
    • 114

    #1

    Zabbix Agent 2 on Windows and active checks

    Hi, I currently have a Zabbix 6.0.5 LTS server mounted on a VPS in the cloud.

    I want to monitor Windows systems where I have installed the Zabbix Agent 2 6.0.5 client. Everything works correctly if I use the passive mode (opening ports in the firewall).

    However, when I use the active mode, although the data arrives, it does not arrive in the time configured.

    For example, system.uname is configured every 5 minutes, but sometimes it takes 1h to receive the information.



    Zabbix Agent 2 Configuration its

    Code:
    LogFile=C:\Program Files\Zabbix Agent 2\zabbix_agent2.log
    Server=zbx.myvps.com
    ServerActive=zbx.myvps.com
    HostnameItem=system.hostname
    BufferSend=3600
    EnablePersistentBuffer=1
    PersistentBufferPeriod=30d
    PersistentBufferFile=C:\Program Files\Zabbix Agent 2\zabbix_agent2.db
    Timeout=30
    Include=C:\Program Files\Zabbix Agent 2\zabbix_agent2.d\
    Include=C:\Program Files\Zabbix Agent 2\zabbix_agent2.conf.d\*.conf
    ControlSocket=\\.\pipe\agent.sock
    AllowKey=system.run[*]
    Plugins.SystemRun.LogRemoteCommands=1
    ForceActiveChecksOnStart=1
    Include=.\zabbix_agent2.d\plugins.d\*.conf


    When I check Zabbix Server Queue






    Edit: After few hours I see that the problem could be BufferSend=3600, now I set BufferSend=5 , but the problem isn't solved. I restart service in Windows machine and also restart Zabbix-Server

    https://i.imgur.com/9zqBnUS.png

    As you can see in last image, (ignore Dell and Toshiba) , GR-LEGION don't send this item in last 13 min. At the end of this edit, 20 min .

    Last edited by guille.rodriguez; 20-06-2022, 00:02.
  • Answer selected by guille.rodriguez at 25-06-2022, 01:39.
    guille.rodriguez
    Senior Member
    • Jun 2022
    • 114

    After some research, reading that post https://www.zabbix.com/forum/zabbix-...-snmp-requests

    I found that in Active Agent there's a preprocessing with "Discard unchanged with heartbeat" with value 1d.

    After deleting this preprocessing, the data gets in time (1 min).

    For some reason, in Passive Agent template I deleted this preprocessing time ago...

    Comment

    • guille.rodriguez
      Senior Member
      • Jun 2022
      • 114

      #2
      Please any help? Issue still

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #3
        Please check the log files. There should be information in the log files that tells you why the agent is trying to send and cannot.

        Comment

        • guille.rodriguez
          Senior Member
          • Jun 2022
          • 114

          #4
          Thanks for answer Atsushi,

          I check the log and Agent in sending info, and if I check log in Zabbix Server , the data is received, but some reason isn't see in frontend... only if I restart Zabbix Server the data is printed.

          Data in passive mode is printed at time it checks

          Comment

          • guille.rodriguez
            Senior Member
            • Jun 2022
            • 114

            #5
            After some research, reading that post https://www.zabbix.com/forum/zabbix-...-snmp-requests

            I found that in Active Agent there's a preprocessing with "Discard unchanged with heartbeat" with value 1d.

            After deleting this preprocessing, the data gets in time (1 min).

            For some reason, in Passive Agent template I deleted this preprocessing time ago...

            Comment

            Working...