[ZBX-5461] Importing default OS (and other) templates fails in 2.0.2 - Undefined index: expression/Cannot implode expression "". Created: 2012 Aug 16 Updated: 2017 May 30 Resolved: 2012 Aug 29 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A), Server (S), Templates (T) |
Affects Version/s: | 2.0.2 |
Fix Version/s: | 2.0.3rc1, 2.1.0 |
Type: | Incident report | Priority: | Major |
Reporter: | Aaron Smart | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | api, templates, usability | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
CentOS 5.8 |
Issue Links: |
|
Description |
I upgraded from Zabbix 1.8.6 to 2.0.2 and did not experience any issues during the upgrade process. I noticed the new default templates were not present, so after searching the forums I found them here: I was able to import all the App and SNMP templates successfully, however importing the OS templates fail (I have tried Linux, Windows, Mac OS X, and OpenBSD). Here is the error I get when importing "Template OS Windows": Created: Application "Zabbix agent" on "Template OS Windows". Created: Trigger "Zabbix agent on {HOSTNAME} is unreachable for 5 minutes" on "Template OS Windows". " on "Template OS Windows". The last three error lines are the same when importing other OS templates. I also get the same error when importing a user-created NetApp template from here: http://www.zabbix.com/forum/showthread.php?t=26466 I don't see any obvious errors in zabbix_server.log or Apache error_log |
Comments |
Comment by richlv [ 2012 Aug 17 ] |
could you please try with latest 2.0 svn head (or development snapshot) ? those templates seem to import just fine for me |
Comment by Aaron Smart [ 2012 Aug 17 ] |
I'm sorry I haven't a clue about svn and don't see anything newer than 2.0.2 on the SourceForge page. What do I do? |
Comment by richlv [ 2012 Aug 17 ] |
you can read about nightly builds and/or svn at https://zabbix.org/wiki/Get_Zabbix |
Comment by Aaron Smart [ 2012 Aug 17 ] |
OK I tried 2.0.3rc1 revision 29617 and get the same error but with different line references: Undefined index: expression [api/classes/CTriggerPrototype.php:1151] |
Comment by Alexey Fukalov [ 2012 Aug 29 ] |
dev branch: svn://svn.zabbix.com/branches/dev/ZBX-5461 Fixed problem with PHP 5.1.6 |
Comment by Toms (Inactive) [ 2012 Aug 30 ] |
TESTED |
Comment by Alexey Fukalov [ 2012 Aug 31 ] |
Fixed in 2.0.3rc1 29985, 2.1.0rc1 29986 |