[ZBXNEXT-9966] Invalid parameter "/1/uuid": UUIDv4 is expected. Created: 2025 Apr 05 Updated: 2025 May 09 |
|
Status: | Reopened |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | API (A) |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Change Request | Priority: | Trivial |
Reporter: | Simon Jackson | Assignee: | Zabbix Development Team |
Resolution: | Unresolved | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Zabbix Server v.7.0.4 (docker), custom YAML template |
Issue Links: |
|
Description |
Steps to reproduce:
Result: If you are going to put time into writing error messages into the code, at least make them helpful. with logLevel=4, i've got millions of lines per minut in my `docker logs zabbix-server-1` console output. I coud waste hours and hours dumping to file-system, grepping through the files... i'd rather find the code that throws this stupid error message and fix it. Expected: |
Comments |
Comment by Simon Jackson [ 2025 Apr 05 ] |
Questions:
|
Comment by Filip Pawlicki [ 2025 Apr 07 ] |
Dear Simon, I've tried both modifying and importing a template without uuid - both produced different errors. I'm wondering if you could share the template that you've tried to import, i'd like to see whats the difference between a compliant and non compliant template. That answers one of the questions - it is not reporting a missing uuid value. Is this reporting that a UUID key/value pair is required, when one is not used in the template? - Looking at how almost every part of a template has its own uuid, reporting is required. I'll try to find some info on how are they generated. Meanwhile, could you send us the problematic template please. Kind regards, Filip |
Comment by beaufort12 [ 2025 Apr 07 ] |
|
Comment by Alexander Vladishev [ 2025 Apr 08 ] |
The UUIDv4 identifiers in your example are not valid. Octets 6 and 8 must contain the correct version and variant bits.
We are continuously working on improving input validation and error handling. For example, some enhancements in this area are being implemented in ZBXNEXT-9774.
Although the commonly accepted UUID format includes hyphens (8-4-4-4-12), other formats are also valid — for example, enclosing the UUID in curly braces or writing it without hyphens. We’ve chosen the latter format (without hyphens). |
Comment by Simon Jackson [ 2025 Apr 22 ] |
sasha You closed this ticket with a "Won’t Fix." status. I raised this issue to highlight the ambiguity of the error message Invalid parameter "/1/uuid": UUIDv4 is expected. and to suggest improvements to its clarity. Your premature closure of this ticket without adequate justification or consultation is a problem. Supporting a community-driven project requires collaboration, and dismissing feedback without thorough discussion undermines trust and respect. Closing any ticket without addressing the core of the issue requested (in this case: poor error handling) sends a discouraging signal to the wider community. As engineers, we rely on collaborative feedback to resolve issues efficiently. Dismissive responses erode confidence in the support process and reflect poorly on the broader Zabbix team.
You closed my ticket with no related evidence or detailed analysis to support your closure statements. To clarify: 1. I did not share my YAML initially because it was under active development.
If you want to look at my YAML now, i've published it here. 2. The template import routine, produces an error message that is misleading and led to hours of unnecessary debugging.
I respectfully request that you:
Thank you, Simon |
Comment by Alexander Vladishev [ 2025 Apr 22 ] |
My apologies — I mistakenly took the example from user beaufort12 in the comment above as your own.
I explained in my comment above that similar improvements are already being implemented as part of another ticket. That’s why I wanted to expedite resolving this by closing the current one and leaving a restricted comment for developers in the ticket that’s already in progress. I’ll move this ticket to a more appropriate project — ZBXNEXT — since the issue you described cannot be considered a bug. |
Comment by Jim [ 2025 May 09 ] |
In the meantime, what is the solution to get around this error?
DetailsImport failed
??? Please enlighten me. --- ).TotalMilliseconds\"]" ).TotalMilliseconds\"]" ).TotalMilliseconds\"]" ).TotalMilliseconds\"]" ).TotalMilliseconds\"]" ).TotalMilliseconds\"]" ).TotalMilliseconds\"]" ).TotalMilliseconds\"]" ).TotalMilliseconds; ).TotalMilliseconds; ($wmi - $cim) } catch { 9999 }\""] priority: HIGH - uuid: 70ebec2a2d0911f09cd20242ac120002 name: 💀 WMI query for {HOST.NAME} > 1000 ms expression: '{Template WMI Class Timing:system.run["powershell -command \"(Measure-Command { Get-WmiObject Win32_Service } ).TotalMilliseconds\"].last()} > 1000' ).TotalMilliseconds\"].last()} > 500' }).TotalMilliseconds\""] ).TotalMilliseconds\"] ).TotalMilliseconds\"] ).TotalMilliseconds\"] ).TotalMilliseconds\"] ).TotalMilliseconds\"] ).TotalMilliseconds\"] ).TotalMilliseconds\"] ).TotalMilliseconds\"] |