PDA

View Full Version : Error importing new xml templates


vlam
22-09-2010, 11:53
This is the error that I get when trying to import a new xml template

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; Tablet PC 2.0; MS-RTC LM 8)
Timestamp: Wed, 22 Sep 2010 09:51:52 UTC


Message: Object expected
Line: 18
Char: 1
Code: 0
URI: https://*.*.*.*/templates.php

Can anyone please help

thanks

Mojah
22-09-2010, 15:47
What data is on those lines (and the previous and next 5 lines)?

In XML, you need to make sure you have valid data, which is probably why this is failing. Ampersants, greater than/smaller than signs, ...

Are you running the latest Zabbix frontend?

vlam
22-09-2010, 16:05
here are the first 35 lines

1 <?php
2 /*
3 ** ZABBIX
4 ** Copyright (C) 2000-2010 SIA Zabbix
5 **
6 ** This program is free software; you can redistribute it and/or modify
7 ** it under the terms of the GNU General Public License as published by
8 ** the Free Software Foundation; either version 2 of the License, or
9 ** (at your option) any later version.
10 **
11 ** This program is distributed in the hope that it will be useful,
12 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ** GNU General Public License for more details.
15 **
16 ** You should have received a copy of the GNU General Public License
17 ** along with this program; if not, write to the Free Software
18 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 **/
20 ?>
21 <?php
22 require_once('include/config.inc.php');
23 require_once('include/hosts.inc.php');
24 require_once('include/forms.inc.php');
25 require_once('include/ident.inc.php');
26
27 if(isset($_REQUEST['go']) && ($_REQUEST['go'] == 'export') && isset($_REQUEST['templates'])){
28 $EXPORT_DATA = true;
29
30 $page['type'] = detect_page_type(PAGE_TYPE_XML);
31 $page['file'] = 'zbx_templates_export.xml';
32
33 require_once('include/export.inc.php');
34 }
35 else{

yes I am using the latest frontend (version 1.8.3) frontend

the xml file that i'm trying to import is the windows log file monitoring xml on the zabbix wiki

see the attached xml