This is patch to make wordwrap on column name in zabbix last data view, it's needed when you have long names. Works on zabbix 7.
Created
July 25, 2024 14:01
-
-
Save WMP/a025b9cdf47205da720d298235be889d to your computer and use it in GitHub Desktop.
zabbix latest problem item name wordwrap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naru A/app/partials/monitoring.latest.view.html.php B/app/partials/monitoring.latest.view.html.php | |
--- A/app/partials/monitoring.latest.view.html.php 2024-07-25 15:52:05.798323972 +0200 | |
+++ B/app/partials/monitoring.latest.view.html.php 2024-07-25 15:53:51.818547753 +0200 | |
@@ -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']) | |
@@ -277,7 +277,7 @@ | |
(new CCol($host_name_container))->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS), | |
(new CCol([$item_name, $item_key])) | |
->addClass($state_css) | |
- ->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS), | |
+ ->addClass(ZBX_STYLE_WORDWRAP), | |
(new CCol($item_delay)) | |
->addClass($state_css) | |
->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS), | |
@@ -310,7 +310,7 @@ | |
(new CCol($host_name_container))->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS), | |
(new CCol($item_name)) | |
->addClass($state_css) | |
- ->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS), | |
+ ->addClass(ZBX_STYLE_WORDWRAP), | |
(new CCol($last_check)) | |
->addClass($state_css) | |
->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment