[ZBX-4918] Value mapping not works on dashboard Created: 2012 Apr 26 Updated: 2017 May 30 Resolved: 2012 May 22 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 1.8.11 |
Fix Version/s: | 1.8.14rc1, 2.0.1rc1, 2.1.0 |
Type: | Incident report | Priority: | Major |
Reporter: | David Zurek | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | dashboard, valuemapping | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Fedora FC 14 |
Attachments: | zabbix.PNG | ||||||||||||
Issue Links: |
|
Description |
If I look at dashboard, specifically at widget with System Status, i can click on number which shows number of troubles of specific kind. After click i see Hosts which have trouble but i don't see value mapping i see just values. |
Comments |
Comment by richlv [ 2012 Apr 26 ] |
can you please attach a screenshot of the location where you expect the value mapping to work ? |
Comment by David Zurek [ 2012 Apr 26 ] |
where i expect mapping |
Comment by richlv [ 2012 Apr 26 ] |
please, paste the trigger name as it appears in trigger properties |
Comment by David Zurek [ 2012 Apr 26 ] |
{HOSTNAME}
is {ITEM.LASTVALUE} |
Comment by David Zurek [ 2012 Apr 26 ] |
and value mapping is: and this is assigned to item, which has that triger |
Comment by richlv [ 2012 Apr 26 ] |
hmm, this was sort of fixed for dashboard in there really should be some way to control whether value mapping expansion should happen or not... |
Comment by Alexander Vladishev [ 2012 Apr 28 ] |
It's a regression after implementation of |
Comment by Alexander Vladishev [ 2012 May 07 ] |
Related issue: |
Comment by Alexey Fukalov [ 2012 May 07 ] |
dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4918 |
Comment by Eduards Samersovs (Inactive) [ 2012 May 07 ] |
(1) Acknowledges seems is broken. Cannot make ack from "System status" widget (seems for first element). <Eduard> CLOSED, Trigger event generation was in Multiple problem state. |
Comment by Alexander Vladishev [ 2012 May 08 ] |
(2) value mapping is not performed for {ITEM.VALUE}macro <Vedmak> RESOLVED |
Comment by Alexander Vladishev [ 2012 May 08 ] |
(3) {ITEM.LASTVALUE} macro expansion in trigger names replaces spaces with ( <Vedmak>RESOLVED |
Comment by Eduards Samersovs (Inactive) [ 2012 May 08 ] |
(4) We can optimize expand_trigger_description_by_data() from duplicates sql queries <Vedmak> RESOLVED |
Comment by Eduards Samersovs (Inactive) [ 2012 May 09 ] |
Tested! |
Comment by Alexey Fukalov [ 2012 May 14 ] |
svn://svn.zabbix.com/branches/1.8 27509 |
Comment by Alexey Fukalov [ 2012 May 14 ] |
trunk dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4918 |
Comment by Toms (Inactive) [ 2012 May 15 ] |
(1) almost identical code, should be shorter code (in a loop): // processing of macros {HOST.HOST1..9} $macro = '{HOST.HOST'.($i ? $i : '').'}'; if (zbx_strstr($description, $macro)) { $host = DBfetch(DBselect( 'SELECT DISTINCT h.host'. ' FROM functions f,items i,hosts h'. ' WHERE f.itemid=i.itemid'. ' AND i.hostid=h.hostid'. ' AND f.functionid='.$functionid )); $description = str_replace($macro, $host['host'], $description); } // processing of deprecated macros {HOSTNAME1..9} $macro = '{HOSTNAME'.($i ? $i : '').'}'; if (zbx_strstr($description, $macro)) { $host = DBfetch(DBselect( 'SELECT DISTINCT h.host'. ' FROM functions f,items i,hosts h'. ' WHERE f.itemid=i.itemid'. ' AND i.hostid=h.hostid'. ' AND f.functionid='.$functionid )); if (is_null($host['host'])) { $host['host'] = $macro; } $description = str_replace($macro, $host['host'], $description); } <Vedmak> RESOLVED <Toms> Same for IPADDRESS and HOST.IP <Vedmak> RESOLVED |
Comment by Toms (Inactive) [ 2012 May 18 ] |
TESTED |
Comment by Alexey Fukalov [ 2012 May 22 ] |
svn://svn.zabbix.com/branches/2.0 27697 |