[ZBX-22593] Agent2 wmi.get does not respect case of returned data, if answer is True/False Created: 2023 Mar 27 Updated: 2024 Apr 10 Resolved: 2023 May 31 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 6.0.13 |
Fix Version/s: | 7.0.0alpha2, 7.0 (plan) |
Type: | Problem report | Priority: | Critical |
Reporter: | Lauri Rood | Assignee: | Mihails Prihodko |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
agent2 on windows. Mixed versions of windows, 2016, 2019 |
Attachments: |
![]() ![]() ![]() ![]() |
||||
Issue Links: |
|
||||
Team: | |||||
Sprint: | Sprint 99 (Apr 2023), Sprint 100 (May 2023) | ||||
Story Points: | 1 |
Description |
Steps to reproduce:
Result: from classic agent you will get "True", from agent2, you will get "true". Note the case... Running query in host in powershell, gives you "True". Running any other query, which returns for example "Disabled" or "N/A" or "Unknown" works without any issues, no modifications to returned value. Expected: I would expect query to return values with same case. This has no connection to windows version. In my case both 2016 and 2019 behaved same way. We discovered this during upgrading our environment from classic to agent2, when after agent change several triggers, which used "find(/host/item/.."like", "True")<>1", suddenly fired. Workaround was implemented, "like" replaced with "iregexp". But still, it would be nice to get answers from agent without any case changes. |
Comments |
Comment by Mihails Prihodko [ 2023 Apr 20 ] | ||||||||||||
Mini-specification v1.0 What's affected:
Zabbix agentd Zabbix agent 2 Templates No changes in templates are required.
Signoff: Patches for clients | ||||||||||||
Comment by Mihails Prihodko [ 2023 May 25 ] | ||||||||||||
Available in versions:
| ||||||||||||
Comment by Marina Generalova [ 2023 May 30 ] | ||||||||||||
Documentation updated: |