View Full Version : 1.6.3 XML Import no longer works.
Ralf Steiner
27-03-2009, 13:29
Importing XML Templates seems to be broken after updating 1.6.2 to 1.6.3
The only rule I can select in 'missing' scenario is 'skip'.
Who sad this is a bug?
I found 1.6.3 very f... up :-( as i've noticed many more problems.
Examples please.
Krzysztof Raczkowski
31-03-2009, 14:27
I've deleted previous post as all was my mistake :-/.
I figured out, that my export was not properly done - I didn't check 'items', 'triggers' and 'Graphs' on exported templates, and XML file was empty.
Now it works OK, but I think. I'll be looking for a support on this forum very often ;-)
I've got another problem: after upgrade to 1.6.3 I can't import templates.
It works absolutely fine.
The only rule I can select in 'missing' scenario is 'skip'.
It was always like this.
I found 1.6.3 very f... up :-( as i've noticed many more problems.
Could you be more specific please?
Krzysztof Raczkowski
31-03-2009, 14:54
Could you be more specific please?
I think, I should open new topic for every issue, but I write short list of what i found. I'll try to describe it with details (and maybe with patches in short future):
- cloning an item gives me:
* Added new item Template_Sun_Blade_8000_SP:SYS_T_AMB2
* Undefined variable: applications[/usr/share/zabbix/include/items.inc.php:352]
* Invalid argument supplied for foreach()[/usr/share/zabbix/include/items.inc.php:1171]
* Added new item module 0:SYS_T_AMB2
- I can't monitor more than one snmp v3 host at a time. After adding another host - no data is collected from the new one. If I disable host 1, and restart zabbix-server, host 2 is working, but i can't enable monitoring of host 1 any more (this issue is also on 1.6.2). Switching to snmp v2c fixes all problems.
The above patch fixed my problem in 1.6.3 as well. I would click on Import and be presented with a blank screen. Ah, for missing parenthesis.
If you're using Zabbix web and are too lazy to re-deploy, you can download the patch, and do something like (your paths might be different):
cd /tmp
wget 'http://www.zabbix.org/forum/attachment.php?attachmentid=1814&d=1238162855' -O zabbix-import.patch
cd /usr/share/zabbix
# (as root)
patch --dry-run -p2 /tmp/zabbix-import.patch
This "dry run" should report any errors if there are any problems. If there are no problems, apply the patch:
# (as root)
patch -b -p2 /tmp/zabbix-import.patch
The above patch fixed my problem in 1.6.3 as well. I would click on Import and be presented with a blank screen. Ah, for missing parenthesis.
If you're using Zabbix web and are too lazy to re-deploy, you can download the patch, and do something like (your paths might be different):
cd /tmp
wget 'http://www.zabbix.org/forum/attachment.php?attachmentid=1814&d=1238162855' -O zabbix-import.patch
cd /usr/share/zabbix
# (as root)
patch --dry-run -p2 /tmp/zabbix-import.patch
This "dry run" should report any errors if there are any problems. If there are no problems, apply the patch:
# (as root)
patch -b -p2 /tmp/zabbix-import.patch
Wow - glad i checked the Forums before posting a support ticket. Solved my import problem instantly. Thank you! One little thing, i couldn't get the patch to apply so i edited import.inc.php in-situ (and the php sourcefile, too). If I knew what you were targeting under /usr/share/zabbix it might have helped translate to my install - no crits, of course cuz it worked great. Presumably that is your zabbix sources location?