[ZBXNEXT-123] Value mapping not visible in the graphs Created: 2008 Oct 08  Updated: 2023 Apr 20

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: None

Type: Change Request Priority: Major
Reporter: Johan Huysmans Assignee: Unassigned
Resolution: Unresolved Votes: 31
Labels: patch, valuemapping
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File example.png     PNG File example_3.0.4.png     Text File zbx_graph_axis_valuemap.patch     Zip Archive zbx_graph_value_maps_2.4.7_v1.zip     Zip Archive zbx_graph_value_maps_3.0.4_v1.zip    
Issue Links:
Duplicate
is duplicated by ZBXNEXT-332 Use Value Mappings in Graphs Closed
is duplicated by ZBXNEXT-2535 Graphs using items with valuemaps hav... Closed

 Description   

If you enable the value mapping for an item this is visible in the overview. When the same item is graphed (by default as the actual value is a number), the mapped value is not visible in the graph.

This means that you have no clue which the specific value means.

For example I'm monitoring heartbeat machines which have a status active or passive. These values are stored as 0 and 1 and mapped to standby and active. On the overview page this is visible, but the graph only shows 0 and 1 and no direct link to which theses values mean.



 Comments   
Comment by richlv [ 2009 Oct 01 ]

where would you expect to see value mapping in graphs ?
how would it work if there are multiple mapped states graphed ?

Comment by Ghozlane TOUMI [ 2012 Jun 01 ]

I'm repeating the comment I made in ZBXNEX-332, so it wont get lost ...
I have a very crude patch that adds value maps to the Y Axis.

It gets its map from the first valuemaped item, only tested on one axis.

the patch was created agains 1.8.5, and still applies to later 1.8.x
http://www.zabbix.com/forum/showthread.php?t=23113

Comment by Vladimir Kravchenko [ 2012 Sep 01 ]

zbx_graph_axis_valuemap.patch for 2.0.3rc1, tested on rev.29519 on one/two axis, result screenshot on russian subforum:
http://www.zabbix.com/forum/showthread.php?t=28690

Comment by Raymond Kuiper [ 2013 Dec 06 ]

Another nice solution is mentioned in https://support.zabbix.com/browse/ZBXNEXT-1993

Comment by Vitaly Zhuravlev [ 2016 Sep 03 ]

my version of the patch for Zabbix 2.4.7 and Zabbix 3.0.4(also works in Zabbix 3.2.0beta2):

patch and patched class attached as zbx_graph_value_maps_2.4.7_v1.zip and zbx_graph_value_maps_3.0.4_v1.zip

Meanwhile graphs of items that don't have any value mappings attached stayed the same

to patch run :

patch -i zbx_graph_value_maps_3.0.4.patch

https://github.com/v-zhuravlev/zbx_value_maps_on_graphs

Comment by Andrey Shibanov [ 2019 Feb 13 ]

Any update for 1o (ten!) years?

Comment by Ihor Romanyshyn [ 2021 Jan 04 ]

Guys, I need this feature too. It would be great to have the values mapped on graphs!

Comment by kurgan [ 2021 Aug 25 ]

Need it too...

Comment by Josip Sokolovic [ 2021 Nov 16 ]

What could make sense is the possibility to add a legend on the bottom of the graphs with the mapped values.

Just to explain why that could be useful.

We started in our company to monitor 8000 nodes (increasing daily). Some of these graphs are showing a status for the registration status from a FOS towards a Fortimanager. 

The status are containing these mapped values are:

Tunnel Status:
0 => DOWN
1 => HANDSHAKE
2 => UP

Registration Status:
0 => UNKNOWN
1 => IN_PROGRES
2 => REGISTERED
3 => UNREGISTERED

From the perspective of an ops enginieer who doesn't know what the meaning of these values is and also is not that familiar in the usage of Zabbix, that would be a great help to understand, what's ongoing in case of, if the FOS has an issue with the registration status.

Or...

Just displaying the mapped value of the last value in brackets:

e.g. 1 (IN_PROGRES) and 1 (HANDSHAKE) if the items are combined in one graph. If an ops engineer would see... "Ah OK. The value 1 means the device is handshaking towards the Fortimanager, but in the past the value was alternating between 0 an 2. I mus figure out what's the meaning of 0 and 2. Let's discover that!"

Comment by Sub2.13 [ 2023 Apr 20 ]

hello @Alexei Vladishev, in order to improve the graph visualization, could it plan to be added in a sprint for a future release? A patch has been proposed a long time ago. Even if it requires a refresh for sure I guess, it could be a good start
Thank you in advance for your consideration.

Generated at Thu Mar 28 12:22:55 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.