-
Problem report
-
Resolution: Fixed
-
Major
-
2.2.18, 3.2.6
-
AIX
-
Sprint 10, Sprint 11, Sprint 12
-
3.4
Here we have two condition blocks. The first one to handle system.stat item keys with a single argument only (exclusively "ent" right now). The second condition block is to handle all related item keys having two arguments.
The problem is, that even if everything went well for the single argument item key in the first condition block, the second block is still run through. Since "ent" does not exist as valid first argument here, we end up in the else clause returning an error:
[...] if (0 == strcmp(section, "ent")) { [...] SET_DBL_RESULT(result, collector->vmstat.ent); } [...] if (0 == strcmp(section, "kthr")) [...] else { SET_MSG_RESULT(result, zbx_strdup(NULL, "Invalid first parameter.")); return SYSINFO_RET_FAIL; } return SYSINFO_RET_OK; }
PS: The issue is likely existent in other releases as well.
PPS: this issue might duplicate ZBX-3049 resp. ZBX-5186. Feel free to close it as such, if this is the case.
- is duplicated by
-
ZBX-12454 Don't work item key system.stat[ent]
- Closed