[ZBX-11658] Aggregate error: 'No items for key "%s" in group(s) "groupname".' Created: 2016 Dec 30 Updated: 2024 Apr 10 Resolved: 2017 Oct 31 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 3.2.2 |
Fix Version/s: | 3.2.10rc1 |
Type: | Problem report | Priority: | Minor |
Reporter: | Janne Korkkula | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 5 |
Labels: | aggregate | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
PostgreSQL clusters Monitored with pg_monz 2.0.1 via a Zabbix proxy. |
Issue Links: |
|
||||||||
Team: | |||||||||
Sprint: | Sprint 19 | ||||||||
Story Points: | 0.25 |
Description |
Aggregate item definition: key_: grpsum["{$PG_HOST_GROUP}","psql.primary_server[{$PGSCRIPTDIR},$PGSCRIPT_CONFDIR}]",last] error: No items for key "%s" in group(s) "Cluster: Postgres/GEN/test". Source item definition: key_: psql.primary_server[{$PGSCRIPTDIR},{$PGSCRIPT_CONFDIR}] The user macro contents are also identical on the aggregate host and the source hosts, which are in the group "Cluster: Postgres/GEN/test". The group name matches and all source items have valid values, but all aggregate items are 'not supported' with an error like this. That "%s" in the error message should probably expand to something useful, but is the issue just one of error message parameter expansion or is it really comparing the key to a literal "%s" string and failing because of that..? |
Comments |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Jan 03 ] |
Indeed, error message should be more useful. It's a regression from zbx_strcpy_alloc(error, &error_alloc, &error_offset, "No items for key \"%s\" in group(s) "); The reason of the error is {$MACRO} => macro_value item_to_aggregate[{$MACRO},...] {$MACRO_PROTECTED} => {$MACRO} grpsum[group,"item_to_aggregate[{$MACRO_PROTECTED},...]",...] |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Oct 17 ] |
Fix for version 3.2 is available in development branch svn://svn.zabbix.com/branches/dev/ZBX-11658 revision 73598. |
Comment by Sergejs Paskevics [ 2017 Oct 26 ] |
Successfully tested |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Oct 26 ] |
Fixed in pre-3.2.10rc1 r73967. Turns out, 3.4 and higher versions are not affected because pre-3.4 trunk was fixed in |