[ZBX-7838] Maps become unavailable when an item is in maintenance Created: 2014 Feb 19 Updated: 2017 May 30 Resolved: 2014 Apr 08 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 2.2.0 |
Fix Version/s: | 2.2.3 |
Type: | Incident report | Priority: | Major |
Reporter: | Peter van den Berg | Assignee: | Kodai Terashima |
Resolution: | Fixed | Votes: | 0 |
Labels: | packaging, rhel | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() |
Description |
When an element of a map is in maintenance you cannot select this map from monitoring -> maps. This seems to be a return of the issue in Workaround is to add require_once('include/maintenances.inc.php'); to include/maps.inc.php ; |
Comments |
Comment by Pavels Jelisejevs (Inactive) [ 2014 Feb 20 ] |
I can't seem to reproduce this issue. Have you made any modifications to the source? Could you please run "cat include/classes/core/ZBase.php | grep /include/" from the frontend directory and show us the output? This will make sure that all files are included correctly. |
Comment by Peter van den Berg [ 2014 Feb 20 ] |
I have not made any modifications to the source. cat include/classes/core/ZBase.php | grep /include/ I mentioned this problem on the irc channel and Richlv said: I have installed zabbix 2.2.2 on a test server, run the above command and there the next line IS included: The 2.2.0 installation we have is from the official zabbix repo. |
Comment by Pavels Jelisejevs (Inactive) [ 2014 Feb 20 ] |
Yes, looks like the package you've installed is missing this line. require_once $this->getRootDir().'/include/maintenances.inc.php'; What package did you install exactly? |
Comment by Peter van den Berg [ 2014 Feb 20 ] |
Installed version 2.2.0-1.el6 from the zabbix repository: $ yum list installed | grep zabbix |
Comment by Pavels Jelisejevs (Inactive) [ 2014 Feb 20 ] |
Thanks for all the information. This file is indeed included incorrectly in the RHEL 2.2.0 package. I'll reassign the issue to Kodai, our RHEL package manager, to fix the package. But as for now you can use the attached patch to fix the problem. |
Comment by Frederico Passos [ 2014 Feb 24 ] |
The maintenance.patch is incorrect. The correct is maintenances.inc.php (plural), not maintenance.inc.php (singular). |
Comment by Pavels Jelisejevs (Inactive) [ 2014 Feb 25 ] |
Frederico Passos, right, my mistake. I've corrected the patch. |
Comment by Kodai Terashima [ 2014 Apr 08 ] |
Fixed in 2.2.3 |