ZABBIX Forums  
  #1  
Old 23-04-2012, 10:44
Matthieu Matthieu is offline
Member
 
Join Date: Mar 2011
Posts: 40
Default [Zabbix 2.0 RC3] Error during template importation

Hi all,

I've an issue when I'm trying to import templates. Though I've "import successfull" message. But I've nothing in my templates list.

No logs in zabbix_server.log for this problem with debug level 4.
In apache.error I've just:

Apache/2.2.20 (Ubuntu) PHP/5.3.6-13ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations

And the result of php5 -m:

Code:
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib
I've also try to remove php5 and all his modules and install him. But same result.

I'm testing the latest RC of zabbix server 2.0(RC3).

Any idea?

Thanks
Reply With Quote
  #2  
Old 24-04-2012, 02:14
ericgearhart ericgearhart is offline
Senior Member
 
Join Date: Jan 2009
Posts: 114
Default

I think I ran into this the other day myself, when I was trying to import a template

Try checking the "allow creation of new hosts" checkbox in the right column on the import page.
Reply With Quote
  #3  
Old 24-04-2012, 13:50
Matthieu Matthieu is offline
Member
 
Join Date: Mar 2011
Posts: 40
Default

I've try but same result.
Reply With Quote
  #4  
Old 01-05-2012, 22:33
dafyre dafyre is offline
Member
 
Join Date: Sep 2008
Posts: 31
Cool Similar Problem for Me

When I follow your suggestion of clicking checking the Add missing Host,

I get a whole slew of errors up at the top. It says 'ERROR: Import Failed'

Undefined index: delay_flex [api/classes/CItemGeneral.php:276]
Created: Item "Sensor Fan status" on "Library-2800".

And repeats the above two lines for every item to be imported... After the triggers are created, it stops with a line of;

Item {HOSTNAME}:ifInOctets1 does not exist.

I have tried this on RC3 and I just updated to RC4 just a little while ago.

If I don't check the Add missing host, says Import Successful, but doesn't actually import anything.
Reply With Quote
  #5  
Old 16-05-2012, 03:34
dolewine dolewine is offline
Junior Member
 
Join Date: May 2012
Posts: 1
Default

Anyone found a solution for this?
I'm getting the following errors when trying to add a template that worked fine with 1.8:

Undefined index: delay_flex [api/classes/CItemGeneral.php:276]
Incorrect value "180*5" for int field "delay".

I was getting this error in RC3, just updated to RC4 and it's still doing it.
Reply With Quote
  #6  
Old 16-05-2012, 20:23
tchjts1 tchjts1 is offline
Administrator
 
Join Date: May 2008
Location: California
Posts: 1,286
Default

I have imported templates successfully from 1.8 to 2.0rc2

The only issue I cam across was the same as indicated in message #1 of this thread, the import details showed "import successful", but I could not find the templates.

The ones I was importing were uniquely named. What I found to make it work, was to go into the Zabbix GUI, "Create Template" and simply create a template with the same name as the one you are trying to import. Don't create any items/triggers/etc inside that newly created template.

Then try your import again. That worked for me. You may have to play with what checkboxes you are using at the import selection to get the right combination. Start with the most basic thing, maybe selecting only "items" to import, and work your way up from there.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:32.