[ZBXNEXT-5214] Please add link to latest data in host config screen Created: 2019 May 08  Updated: 2019 Jun 19  Resolved: 2019 Jun 19

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

Type: Change Request Priority: Minor
Reporter: Jaroslaw Jozwik Assignee: Valdis Murzins
Resolution: Duplicate Votes: 4
Labels: frontend, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBXNEXT-2797 Navigation from host configuration pa... Open

 Description   

Could be possible to add link to latest data on host config screen.

I've managed to do this myself, for me only, by editing html.inc.php and adding following, right after web scenarios section:

                // latest data link
                if (!$is_template) {
                        $latestv = new CSpan([
                                new CLink(_('Latest values'), 'latest.php?hostids[]='.$db_host['hostid'].'&application=&select=&filter_set=1')]);
                }
                $content_menu->addItem($latestv);

 

But obviously I don't know the whole zabbix coding to do this properly. Possibly hostid instead of hostids[] can be used.

 



 Comments   
Comment by Jaroslaw Jozwik [ 2019 May 30 ]

I have slightly changed the code:

// latest data link
                if (!$is_template) {
                        $latestv = new CSpan([
                                new CLink(_('Latest values'), 'latest.php?hostids[]='.$db_host['hostid'].'&application=&select=&filter_set=1')]);
                $content_menu->addItem($latestv);

                }
Moved printing menu item inside the if {}, because when page displayed template (not host) it tried to print manu item with $latestv, which in this case was not set.

 

 

Comment by Sergey [ 2019 Jun 19 ]

It's easy to implement, but very useful feature for all users.

In Configuration->Hosts->Items, you make sure, that you have all needed items and they have no errors, and then (quickly with this feature) jump to latest data to see their values.

 

Or even in Configuration->Hosts->Items add another column to view the latest available data.

Comment by Alexander Vladishev [ 2019 Jun 19 ]

Closing as a duplicate of ZBXNEXT-2797.

Generated at Fri Mar 29 14:44:07 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.