[ZBXNEXT-1628] [Patch] Add a filter for applications to Latest Data Created: 2013 Feb 15  Updated: 2014 Sep 25  Resolved: 2014 Sep 25

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

Type: Change Request Priority: Minor
Reporter: Volker Fröhlich Assignee: Unassigned
Resolution: Fixed Votes: 7
Labels: filters, latestdata, patch, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File zabbix-2.0.4-latest_data_application_filter.patch     File zabbix-2.2.0-r40682-ZBXNEXT-1628.patch     File zbxNext1628-2.2.5-2.patch     File zbxNext1628-2.2.5.patch     PNG File zbx_application_filter.png    

 Description   

Filtering by application can be very beneficial in the Latest Data view.

The attached patch adds a text box to the filter. Settings are stored in the user profile, exactly as with the existing filter. Both filters work together: Only items matching both conditions are therefore shown. As soon as you filter by application, items without applications assigned are cut out. You can not filter for items without applications explicitly now.

The patch is a draft and made for 2.0.4. I'm not happy with it yet, as the approach is very inefficient. Much rather, the filtering should be done in SQL already.

Two comments are also changed to be more meaningful.

Thanks to Oliver for inspiration and discussion!



 Comments   
Comment by Volker Fröhlich [ 2013 Dec 03 ]

Forward-ported to 2.2

Comment by Marc [ 2014 Aug 24 ]

Attached patch zbxNext1628-2.2.5.patch is a fresh diff based on 2.2.5 that corrects hunk #1:

# patch -p 0 -i /tmp/zabbix-2.2.0-r40682-ZBXNEXT-1628.patch --dry-run
patching file latest.php
Hunk #1 FAILED at 45.
Hunk #2 succeeded at 111 (offset -3 lines).
Hunk #3 succeeded at 307 (offset 6 lines).
Hunk #4 succeeded at 530 (offset 45 lines).
Hunk #5 succeeded at 586 (offset 45 lines).
1 out of 5 hunks FAILED -- saving rejects to file latest.php.rej

Comment by Marc [ 2014 Aug 26 ]

Patch zbxNext1628-2.2.5.patch has a typo in a variable name.
This caused the item filter value being overwritten by the application filter value on page update.
This is fixed in zbxNext1628-2.2.5-2.patch

Comment by Alexei Vladishev [ 2014 Sep 25 ]

It was implemented in Zabbix 2.4.0.

Generated at Fri Apr 19 18:28:34 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.