Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22198

Zabbix agent cant call powershell commands since Windows updates

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Trivial
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None
    • Zabbix agents: 6.0.3.2400
      Installed on Windows server 2019
      Zabbix server: 6.0.12

    Description

      Steps to reproduce:

      1. This problems exists since installing Windows update KB5021237 (server 2019) and KB5021235(server 2016)
      2. If this update is installed on Windows server 2016/ 2019 the zabbix agent we use (Version 6.0.3.2400) cannot use powershell to get data. The agent gets a timeout while executing the powershell command. The command itself is still usable within powershell locally.
        As soon as KB5021237 is deinstalled the agent recovers itself and it able to use powershell commands again.

      This happens with all templates we use that use powershell commands for collecting data. For example WCFS, Windows Certificates Discovery, Template Windows Task Schedule and a couple of self build templates.

      Im not sure if the problem is related to Windows or Zabbix Agent.

       

      Extended debug logging agent side:

      6472:20230111:124751.222 Requested [TaskSchedulerMonitoring[TaskLastResult,Departments Importer]]
       7516:20230111:124751.640 In collect_perfstat()
        6300:20230111:124751.658 Failed to execute command "powershell -NoProfile -ExecutionPolicy Bypass -File "C:\Program Files\Zabbix Agent\scripts\DiscoverScheduledTasks.ps1" "TaskNextRunTime" "%NAME TASK%"": Timeout while executing a shell script.
        7516:20230111:124751.659 End of collect_perfstat()
        6300:20230111:124751.661 Sending back [ZBX_NOTSUPPORTED: Timeout while executing a shell script.]
        6300:20230111:124751.663 In zbx_tls_accept()
        6300:20230111:124751.674 zbx_psk_server_cb() requested PSK identity "server_name"
        6300:20230111:124751.675 End of zbx_tls_accept():SUCCEED (established TLSv1.3 TLS_CHACHA20_POLY1305_SHA256)
        6300:20230111:124751.676 Requested [TaskSchedulerMonitoring[TaskNextRunTime,%TASK_NAME%)]]
      
      

       

       

      Attachments

        Activity

          People

            zabbix.support Zabbix Support Team
            jeroen23 Jeroen van der Schaar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: