[ZBXNEXT-2703] filter dashboard by trigger name Created: 2015 Feb 09  Updated: 2015 Oct 30  Resolved: 2015 Oct 30

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

Type: Change Request Priority: Trivial
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: dashboard, filters
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

it might be useful to filter monitoring -> dashboard by trigger name

open questions - macro, positional placeholder resolution and use in filtering



 Comments   
Comment by Ivo Kurzemnieks [ 2015 Aug 04 ]

Added specification

Comment by Ivo Kurzemnieks [ 2015 Aug 04 ]

(1) Added translation strings:

  • Trigger name like

sasha CLOSED

Comment by Ivo Kurzemnieks [ 2015 Aug 04 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBXNEXT-2703

Comment by Alexander Vladishev [ 2015 Aug 14 ]

(3) "Undefined index" in the "Host issues", "Host group issues" and "System status" screen elements.

Undefined index: trigger_name [screenedit.php:395 → CView->render() → include() → CScreenBuilder->show() → CScreenHostgroupTriggers->get() → make_latest_issues() in include/blocks.inc.php:568]
Undefined index: trigger_name [screenedit.php:395 → CView->render() → include() → CScreenBuilder->show() → CScreenHostTriggers->get() → make_latest_issues() in include/blocks.inc.php:568]
Undefined index: trigger_name [screenedit.php:395 → CView->render() → include() → CScreenBuilder->show() → CScreenSystemStatus->get() → make_system_status() in include/blocks.inc.php:331]

iivs RESOLVED in r54955

sasha CLOSED

Comment by Alexander Vladishev [ 2015 Aug 14 ]

(4) A default value must be added in calls of getRequest() and CProfile::get()

frontends/php/dashconf.php:95
CProfile::update('web.dashconf.triggers.name', getRequest('trigger_name'), PROFILE_TYPE_STR);

frontends/php/dashconf.php:124
$data['trigger_name'] = getRequest('trigger_name');

frontends/php/dashconf.php:140
$data['trigger_name'] = CProfile::get('web.dashconf.triggers.name');

frontends/php/app/controllers/CControllerWidgetHostsView.php:101
$filter['trigger_name'] = CProfile::get('web.dashconf.triggers.name');

frontends/php/app/controllers/CControllerWidgetIssuesView.php:100
$filter['trigger_name'] = CProfile::get('web.dashconf.triggers.name');

frontends/php/app/controllers/CControllerWidgetSystemView.php:99
$filter['trigger_name'] = CProfile::get('web.dashconf.triggers.name');

iivs RESOLVED in r54953

sasha CLOSED

Comment by Alexander Vladishev [ 2015 Aug 14 ]

(5) "Host status" widget in column "Without problems" must show number of hosts with matched triggers.

iivs One way to fix this, was to add some kind of post-filtering. RESOLVED in r54977.
In case this was a bad idea, I added a different fix in which I collect filtered data in separate variables in the main loop. RESOLVED in r54995.

sasha I undid these changes in r55022. The new filter parameter work as existing. WON'T FIX

Comment by Ivo Kurzemnieks [ 2015 Aug 18 ]

Implemented in pre-2.5.0 (trunk) r55025

Comment by Martins Valkovskis [ 2015 Oct 26 ]

(6) Updated documentation:

RESOLVED.

sasha Excellent! CLOSED

Generated at Fri Apr 26 14:14:47 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.