Skip to content

Instantly share code, notes, and snippets.

@cherts
Created October 31, 2019 16:22
Show Gist options
  • Select an option

  • Save cherts/4d127cebe6fd46225e3d76b56c58fa9a to your computer and use it in GitHub Desktop.

Select an option

Save cherts/4d127cebe6fd46225e3d76b56c58fa9a to your computer and use it in GitHub Desktop.
[DBS-003] Patch for Zabbix v4.4.0 to added Latest data in host settings page
[DBS-003] Patch for Zabbix v4.4.0 to added Latest data in host settings page
--- frontends/php/include/html.inc.php.orig 2019-10-14 23:03:10.624511675 +0500
+++ frontends/php/include/html.inc.php 2019-10-14 23:05:35.610755722 +0500
@@ -363,6 +363,13 @@
* the count of rows
*/
if ($lld_ruleid == 0) {
+ // latest data
+ if (!$is_template) {
+ $content_menu->addItem(
+ new CSpan(new CLink(_('Latest data'), 'latest.php?filter_set=1&hostids[]=' . $db_host['hostid']))
+ );
+ }
+
// applications
$applications = new CSpan([
new CLink(_('Applications'), 'applications.php?hostid='.$db_host['hostid']),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment