[ZBXNEXT-2124] Filtering by application in maps Created: 2014 Jan 23  Updated: 2014 Jul 01  Resolved: 2014 Jun 27

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

Type: New Feature Request Priority: Major
Reporter: Pavels Jelisejevs (Inactive) Assignee: Krists Krigers (Inactive)
Resolution: Fixed Votes: 0
Labels: applications, filters, maps
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

An additional application filter will be added to host and host group map elements, that will allow to filter problems only from these applications.

spec at https://www.zabbix.org/wiki/Docs/specs/ZBXNEXT-2124



 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2014 Jan 27 ]

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

Comment by Eduards Samersovs (Inactive) [ 2014 Jan 31 ]

(1)
class.cmap.js:566 (data.length > 0)
class.cmap.js:569 missing ";"

jelisejev RESOLVED in r42077.

sasha CLOSED

Comment by Alexander Vladishev [ 2014 Jan 31 ]

(2) "Undefined index" in Monitoring->Maps

Undefined index: 23928 [maps.php:148 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in include/maps.inc.php:1204]
Invalid argument supplied for foreach() [maps.php:148 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in include/maps.inc.php:1204]

It happens, if the card contains elements with the filter by application and without them.

jelisejev RESOLVED in r42045.

sasha CLOSED

Comment by Eduards Samersovs (Inactive) [ 2014 Jan 31 ]

(3) Broken item filter due of .multiselect .selected ul

{ margin: 0; }

jelisejev RESOLVED in r42046.
Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2014 Jan 31 ]

(4) incorrect host selected in popup if host is present

jelisejev This is a page filter bug and will not be fixed in this issue. CLOSED.

Comment by Eduards Samersovs (Inactive) [ 2014 Jan 31 ]

(5) Application = "0" if I open existing map before dev-branche changes

Eduards CLOSED, application field must be filled in db with empty string not with NULLs

Comment by Eduards Samersovs (Inactive) [ 2014 Jan 31 ]

(6) Application field width can be improved

jelisejev RESOLVED in r42048.
Eduards CLOSED

Comment by Alexander Vladishev [ 2014 Jan 31 ]

(7) Please review my changes in r42037.

jelisejev Cool, thanks. CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2014 Feb 03 ]

Available in 2.3 r42109.

Comment by Pavels Jelisejevs (Inactive) [ 2014 Feb 03 ]

(8) Documentation needs to be updated.

jelisejev Updated API docs:

Comment by Pavels Jelisejevs (Inactive) [ 2014 Feb 28 ]

(10) Undefined indexes appear when filtered triggers contain web items.

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

sasha CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2014 Mar 04 ]

(11) The DB patches need to be rewritten to avoid using the duplicate patch feature.

jelisejev RESOLVED in r43173.

sasha CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2014 Mar 05 ]

Fixed in 2.3.0 r43219.

Comment by Pavels Jelisejevs (Inactive) [ 2014 Mar 05 ]

CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2014 May 06 ]

(12) The application filter is not exported.

kristsk RESOLVED in r45163.

jelisejev CLOSED.

Comment by Ricardo Santos [ 2014 May 06 ]

I have zabbix 2.2.2. Is it possible to add this feature to my zabbix installation?

Comment by Alexey Pustovalov [ 2014 May 07 ]

(13) nested maps with applications are not supported. So applications are ignored on top level maps.

kristsk RESOLVED in r45202.

jelisejev CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2014 May 15 ]

(14) I've created a submap with a host group and a host. Both of them have an application filter set. When I open the parent map, an error appears:

Undefined offset: 13491 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1003]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1003]
Undefined offset: 13491 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1003]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1003]

kristsk RESOLVED in r45547.

jelisejev CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2014 May 19 ]

(15) I have a submap with two hosts, both of them have problem triggers. I add an application filter on one of them to filter out all of the problem triggers. When I switch to the parent map it doesn't display any problems, even though it must display problems from the other host.

kristsk RESOLVED in r45635.

jelisejev Now it displays problems from both of the hosts. Only the problems from the host without the filter must be displayed.

kristsk RESOLVED in r45840.

jelisejev Now I see similar errors as in (14):

Undefined offset: 13509 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13558 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13491 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13492 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13493 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13494 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13495 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13496 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13497 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13498 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13499 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13570 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13559 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13564 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13560 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13563 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13561 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13562 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13500 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13501 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13502 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13503 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13557 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]
Undefined offset: 13504 [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_keys() expects parameter 1 to be array, null given [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_keys() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1045]
array_intersect(): Argument #1 is not an array [maps.php:149 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → array_intersect() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/maps.inc.php:1047]

kristsk RESOLVED in r45930.

jelisejev CLOSED.

Comment by Luiz Sales [ 2014 May 30 ]

will be possible to use multiple applications?

Comment by Pavels Jelisejevs (Inactive) [ 2014 Jun 02 ]

Luiz, it's a text match filter. That is, it will allow to filter by applications, that match the given text. For example, filter value "Zabbix" will filter triggers from applications "Zabbix agent" and "Zabbix server".

Comment by Pavels Jelisejevs (Inactive) [ 2014 Jun 03 ]

(16) I have a host with 4 problems and one of these problems in application "Zabbix server". I've created a map with a host with a "Zabbix server" filter and a host group element, which contains this host without a filter. The submap is displayed correctly: 1 problem for the host, and 4 problems for the host group. But when I include this map on a parent map, it displays only 1 problem from the host.

kristsk RESOLVED in r46254.

jelisejev CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2014 Jun 03 ]

(17) It would be great to move the filtering logic into a separate function, otherwise the getSelementsInfo() function becomes too big.

kristsk RESOLVED in r46254.

jelisejev Much better. Please review my changes in r46365-46383.

kristsk CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2014 Jun 11 ]

(18) I have a map with a host and two copies of the same host group that host belongs to. The first host group element has no filter, the second has a filter. As a result 1 problem is displayed for the host, 4 for the first host group element and 1 for the second. That is correct. But the parent map displays only 1 problem.

kristsk RESOLVED in r46397.

jelisejev CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2014 Jun 12 ]

TESTED.

Comment by Krists Krigers (Inactive) [ 2014 Jun 12 ]

Implemented and merged to 2.3.2 (trunk) in r46440.

Comment by Alexey Pustovalov [ 2014 Jun 16 ]

(19) A lot of errors like "Invalid argument supplied for foreach()" and "undefined offset... in filterSysmapTriggers()" if a map contains triggers.

kristsk RESOLVED in r46525.

jelisejev Some problems with this fix:
1. You've renamed the $triggers variable into $triggersFromMonitoredHosts which is OK in this specific place, but won't do in others.
2. It would be better if the filterSysmapTriggers() function would check the type of elements it's working with instead of relying on the $triggersFromMonitoredHosts array.

kristsk RESOLVED in r46553, branch svn://svn.zabbix.com/branches/dev/ZBXNEXT-2124-2.2.filter.

jelisejev Another problem: I have a map with a filtered host and a trigger from a DIFFERENT host. When I include this map to a parent map, an undefined index appears:

Undefined offset: 13609 [maps.php:148 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → filterSysmapTriggers() in /opt/lampp/htdocs/zabbix/2.2.filter/frontends/php/include/maps.inc.php:1407]
Invalid argument supplied for foreach() [maps.php:148 → CView->render() → include() → getActionMapBySysmap() → getSelementsInfo() → filterSysmapTriggers() in /opt/lampp/htdocs/zabbix/2.2.filter/frontends/php/include/maps.inc.php:1408]

kristsk RESOLVED in rr46644.

jelisejev CLOSED.

Comment by Krists Krigers (Inactive) [ 2014 Jun 16 ]

Fixed standalone trigger issues in r46553, branch svn://svn.zabbix.com/branches/dev/ZBXNEXT-2124-2.2.filter.

Comment by Pavels Jelisejevs (Inactive) [ 2014 Jun 17 ]

(20) Another problem: I have a map with a filtered host and a trigger from the SAME host. When I include this map to a parent map, it only displays the problem from the host.

kristsk RESOLVED in r46644.

jelisejev CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2014 Jun 19 ]

TESTED.

Comment by Krists Krigers (Inactive) [ 2014 Jun 19 ]

Fixed bugs and merged to 2.2.filter in r46683, merged to 2.3.2 (trunk) in r46693.

Sent patch for 2.2.filter to dotneft.

Comment by Krists Krigers (Inactive) [ 2014 Jun 20 ]

(21) "Undefined index" errors when sub-sysmaps have host groups with filter but no hosts in them.

Reproduced from clients description:

I can't clearly explain what is the parameter which cause the problem.

But I give you an export of a map with the problem:

• One high level map, composed by two sub maps.
• Two submaps, composed by many hostgroup/application component. The only difference for this 2 submaps is the specific hostgroup for each map.
Problem occur on high lower map.
Each submap is OK

kristsk RESOLVED in r46741, branch svn://svn.zabbix.com/branches/dev/ZBXNEXT-2124-2.2.filter.

iivs CLOSED.

Comment by Ivo Kurzemnieks [ 2014 Jun 20 ]

TESTED.

Comment by Krists Krigers (Inactive) [ 2014 Jun 20 ]

Fixed and merged to 2.2.filter in r46754, merged to 2.3.2 (trunk) in r46755.

Comment by Oleg Egorov (Inactive) [ 2014 Jun 27 ]

(22) Monitoring->Overview

Try to read inaccessible property "CPageFilter->application". [overview.php:278 → CView->render() → include() → CPageFilter->__get() → trigger_error() in C:\xampp\htdocs\2.2.filter\frontends\php\include\classes\class.cpagefilter.php:198]
Argument 2 passed to getTriggersOverview() must be of the type array, boolean given, called in C:\xampp\htdocs\2.2.filter\frontends\php\include\views\monitoring.overview.php on line 111 and defined [overview.php:278 → CView->render() → include() → getTriggersOverview() in C:\xampp\htdocs\2.2.filter\frontends\php\include\triggers.inc.php:1191]
Invalid argument supplied for foreach() [overview.php:278 → CView->render() → include() → getTriggersOverview() in C:\xampp\htdocs\2.2.filter\frontends\php\include\triggers.inc.php:1195]

kristsk RESOLVED in r46893.

oleg.egorov CLOSED

Comment by Krists Krigers (Inactive) [ 2014 Jul 01 ]

This issue is already merged to trunk. Backport to 2.2.filter is delivered and working.

Generated at Wed Apr 24 21:48:13 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.