-
Change Request
-
Resolution: Unresolved
-
Trivial
-
None
-
7.0.17, 7.2.11, 7.4.1
-
None
Problem
In Monitoring → Latest data, long item names are truncated after 62 characters, making it difficult to identify items when the important part of the name appears later (common with network interface descriptions; as example). This forces users to guess or open item details, slowing down triage.
Example:
- Cisco/Nexus templates include interface descriptions at the end of the name.
- The current Latest Data view utilizes the ZBX_STYLE_OVERFLOW_ELLIPSIS class on the Item Name, which hides the important part of the Item Name.
This behavior is shown in the following screenshot:
Who’s affected
- NOC/SRE operators scanning Latest data during incidents
- Network engineers using SNMP templates where interface descriptions are appended to item names (e.g., Cisco/Nexus)
User Story
- When scanning Latest data, I want to see or quickly reveal the full item name so that I can identify the correct item without leaving the page.
- I want to copy the full item name easily for search or ticketing purposes.
Proposed Solution
Two possible approaches:
1. Change the default (simplest)
Replace ZBX_STYLE_OVERFLOW_ELLIPSIS with ZBX_STYLE_WORDWRAP for $item_name in monitoring.latest.view.html.php.
- Pros: Minimal change; works immediately for all users.
- Cons: Increases row height for long names; no opt-out.
Tested patch against 7.0.13:
--- monitoring.latest.view.html.php 2025-08-11 21:05:32 +++ monitoring.latest.view.html.php.orig 2025-06-02 18:07:20 @@ -132,7 +132,7 @@ ]) ), ($item['description_expanded'] !== '') ? makeDescriptionIcon($item['description_expanded']) : null - ])); + ]))->addClass(ZBX_STYLE_ACTION_CONTAINER); // Row history data preparation. $last_history = array_key_exists($itemid, $data['history']) @@ -278,7 +278,7 @@ (new CCol($host_name_container))->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS), (new CCol([$item_name, $item_key])) ->addClass($state_css) - ->addClass(ZBX_STYLE_WORDWRAP), + ->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS), (new CCol($item_delay)) ->addClass($state_css) ->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS), @@ -311,7 +311,7 @@ (new CCol($host_name_container))->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS), (new CCol($item_name)) ->addClass($state_css) - ->addClass(ZBX_STYLE_WORDWRAP), + ->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS), (new CCol($last_check)) ->addClass($state_css) ->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS),
The result would look like the following screenshot
2. Configurable “Show full names” option
Add a checkbox in the Latest data filter (next to “Show details”) to toggle between truncated and wrapped names.
- Default: Ellipsis (current behavior).
- When enabled: Apply word-wrap for the Name column.
- Preference is configurable via the Filter tab, just like 'Show details'
Pros: Flexible; keeps compact view for those who prefer it.
Cons: Requires UI and JavaScript changes; slightly more effort.
I imagine something like this:
Acceptance Criteria
- I can view the entire item name without leaving the Latest data page.
- I can copy the full name easily.
- Table layout remains readable; performance impact is negligible.
Risks
- Wrapping long names may cause tall rows, impacting scanning speed.
- Large numbers of wrapped items could slightly increase DOM height and rendering time.