[ZBX-25728] Zabbix Agent 2 on Windows crashing when WMI queries are used Created: 2024 Dec 11  Updated: 2024 Dec 11  Resolved: 2024 Dec 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 7.0.5
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Michal Kudlacz Assignee: Zabbix Development Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows Server 2016
Zabbix Agent 7.0.1


Issue Links:
Duplicate
duplicates ZBX-25725 Zabbix Agent2 for Windows - crashes o... Closed

 Description   

Once the wmi.getall item is added, the agent seems to freeze. No data is collected for the item and it disrupts data collection for other items as well.

The agent crashes and restarts normally. However, as long as the wmi.getall item is enabled, the agent will crash again. Disabling the item allows it to function properly.

Agent log ends with:

2024/12/11 10:16:28.875593 [101] adding new request for key: 'wmi.getall[root\mscluster,"select * from MSCluster_Cluster"]'
2024/12/11 10:16:28.875593 Calling C function "zbx_get_agent_item_nextcheck()"
2024/12/11 10:16:28.875593 Calling C function "free(cdelay)"
2024/12/11 10:16:28.875593 [101] created exporter task for plugin 'Wmi' itemid:252493 key 'wmi.getall[root\mscluster,"select * from MSCluster_Cluster"]'

The WMI query runs quickly and returns a relatively small amount of data:

Measure-Command { Get-WmiObject -Namespace "root\MSCluster" -Query "SELECT * FROM MSCluster_Cluster" }
Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 0
Milliseconds      : 22
Ticks             : 224420
TotalDays         : 2.5974537037037E-07
TotalHours        : 6.23388888888889E-06
TotalMinutes      : 0.000374033333333333
TotalSeconds      : 0.022442
TotalMilliseconds : 22.442

Select query result (118 lines):

__GENUS                                 : 2
__CLASS                                 : MSCluster_Cluster
__SUPERCLASS                            : CIM_Cluster
__DYNASTY                               : CIM_ManagedSystemElement
__RELPATH                               : MSCluster_Cluster.Name="domain"
__PROPERTY_COUNT                        : 111
__DERIVATION                            : {CIM_Cluster, CIM_ComputerSystem, CIM_System, CIM_LogicalElement...}
__SERVER                                : SERVER
__NAMESPACE                             : root\MSCluster
__PATH                                  : \\SERVER\root\MSCluster:MSCluster_Cluster.Name="domain"
AddEvictDelay                           : 60
AdminAccessPoint                        : 1
AdminExtensions                         : 
AutoAssignNodeSite                      : 0
AutoBalancerLevel                       : 1
AutoBalancerMode                        : 2
BackupInProgress                        : 0
BlockCacheSize                          : 0
Caption                                 : 
ClusSvcHangTimeout                      : 135
ClusSvcRegroupOpeningTimeout            : 
ClusSvcRegroupPruningTimeout            : 
ClusSvcRegroupStageTimeout              : 5
ClusSvcRegroupTickInMilliseconds        : 300
ClusterEnforcedAntiAffinity             : 0
ClusterFunctionalLevel                  : 9
ClusterGroupWaitDelay                   : 120
ClusterLogLevel                         : 3
ClusterLogSize                          : 300
ClusterUpgradeVersion                   : 8
CreationClassName                       : 
CrossSiteDelay                          : 1000
CrossSiteThreshold                      : 20
CrossSubnetDelay                        : 2000
CrossSubnetThreshold                    : 20
CsvBalancer                             : 1
DatabaseReadWriteMode                   : 0
Dedicated                               : 
DefaultNetworkRole                      : 3
Description                             : 
DisableGroupPreferredOwnerRandomization : 
DrainOnShutdown                         : 1
DumpPolicy                              : 34672921
DynamicQuorumEnabled                    : 1
EnableSharedVolumes                     : 1
FixQuorum                               : 0
Fqdn                                    : domain.local
GracePeriodEnabled                      : 
GracePeriodTimeout                      : 
GroupAdminExtensions                    : 
GroupDependencyTimeout                  : 600
HangRecoveryAction                      : 3
IdentifyingDescriptions                 : 
IgnorePersistentStateOnStartup          : 0
InstallDate                             : 
LogResourceControls                     : 0
LowerQuorumPriorityNodeId               : 0
MaintenanceFile                         : 
MaxNumberOfNodes                        : 64
MessageBufferLength                     : 50
MinimumNeverPreemptPriority             : 3000
MinimumPreemptorPriority                : 1
Name                                    : domain
NameFormat                              : 
NetftIPSecEnabled                       : 1
NetworkAdminExtensions                  : 
NetworkInterfaceAdminExtensions         : 
NetworkPriorities                       : 
NodeAdminExtensions                     : 
OtherIdentifyingInfo                    : 
PlacementOptions                        : 0
PlumbAllCrossSubnetRoutes               : 0
PreferredSite                           : 
PreventQuorum                           : 0
PrimaryOwnerContact                     : 
PrimaryOwnerName                        : 
PrivateProperties                       : System.Management.ManagementBaseObject
QuarantineDuration                      : 7200
QuarantineThreshold                     : 3
QuorumArbitrationTimeMax                : 90
QuorumArbitrationTimeMin                : 
QuorumLogFileSize                       : 
QuorumPath                              : 
QuorumType                              : Node and File Share Majority
QuorumTypeValue                         : 2
RecentEventsResetTime                   : 20220504083606.741425+000
RequestReplyTimeout                     : 60
ResiliencyDefaultPeriod                 : 240
ResiliencyLevel                         : 2
ResourceAdminExtensions                 : 
ResourceDllDeadlockPeriod               : 
ResourceTypeAdminExtensions             : 
Roles                                   : 
RootMemoryReserved                      : 
RouteHistoryLength                      : 10
S2DBusTypes                             : 0
S2DCacheBehavior                        : 88
S2DCacheDesiredState                    : 2
S2DCacheDeviceModel                     : 
S2DCacheFlashReservePercent             : 0
S2DCacheMetadataReserveBytes            : 34359738368
S2DCachePageSizeKBytes                  : 16
S2DEnabled                              : 0
S2DIOLatencyThreshold                   : 10000
S2DOptimizations                        : 0
SameSubnetDelay                         : 2000
SameSubnetThreshold                     : 15
Security                                : 
Security_Descriptor                     : {1, 0, 20, 128...}
SecurityLevel                           : 1
SharedVolumeCompatibleFilters           : {CVDLP}
SharedVolumeIncompatibleFilters         : {}
SharedVolumeSecurityDescriptor          : {1, 0, 4, 128...}
SharedVolumesRoot                       : C:\ClusterStorage
SharedVolumeVssWriterOperationTimeout   : 1800
ShutdownTimeoutInMinutes                : 20
Status                                  : 
UseClientAccessNetworksForSharedVolumes : 2


 Comments   
Comment by Alexander Vladishev [ 2024 Dec 11 ]

Closed as duplicate of ZBX-25725. Please follow updates there.

Generated at Wed Apr 23 01:01:58 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.