Ad Widget
Collapse
Zabbix 1.8 export/import does not work
Collapse
X
-
-
Regarding the exporting issue, I have got a CentOS 5.4 32bit test server to prepare for an upgrade from our 1.4. I have installed PHP 5.2.9 from CentOS test repository.
The following is installed on the core server
make
wget
gcc
mysql-server
mysql-devel
curl-devel
httpd
php-mysql
php-bcmath
php-gd
net-snmp-devel
php-mbstring
ntp
Zabbix works perfectly. However, when I tested to export, I got an error message on IE (HTTP 500 Internal Server Error)
I check Apache log files and they display the following errors
[Sun Dec 27 16:51:39 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning: require_once(include/classes/class.domdocument.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /var/www/html/include/config.inc.php on line 74, referer: http://xxx.xxx.xxx.xxx/export.php?sid=299e26d4eccbe7dc
[Sun Dec 27 16:51:39 2009] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'include/classes/class.domdocument.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/include/config.inc.php on line 74, referer: http://xxx.xxx.xxx.xxx/export.php?sid=299e26d4eccbe7dc
any clue as to what is that?
ThanksComment
-
that is supposed to be internal php stuff, but some distros apparently package it as separate module. if available, try installing php-xml package, which supposedly contains domdocument class as well.[Sun Dec 27 16:51:39 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning: require_once(include/classes/class.domdocument.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /var/www/html/include/config.inc.php on line 74, referer: http://xxx.xxx.xxx.xxx/export.php?sid=299e26d4eccbe7dcComment
-
I've noticed a problem with the export...
I've a trigger with the expresion...
{Template_BackupExec:BE_job_start[daily_exchange_bricklevel].nodata(21600)}&{Template_BackupExec:BE_job_start[daily_exchange_bricklevel].last(0)}=1
However, if I export it then this is the XML I get
<trigger>
<description>BE: Daily Exchange Bricklevel has been running > 6 hours</description>
<type>0</type>
<expression>{Template_BackupExec:BE_job_start[daily_exchange_bricklevel].nodata(21600)}</expression>
<url/>
<status>0</status>
<priority>2</priority>
<comments/>
</trigger>
Everything after the & (or | in other triggers) seems to be lost.
Also although the dependency exists in the XML file..
<dependency description="Template_BackupExec:BE: Daily Exchange Bricklevel has been running > 6 hours">
<depends>Template_BackupExec:BE: Daily Exchange Bricklevel has been running > 10 hours</depends>
</dependency>
when I import the template there is no dependency shown.Comment
-
php class error
Well folks,
I had a problem with the import of XML templates.
The first place I had a look was the apache error log and I found:
PHP Fatal error: Call to undefined method CTemplate::add() in /data/www/htdocs/include/export.inc.php on line 585, referer: http://undiscloseddomain.com/import....18db771e01d71b
---
checking the code, I figured out that there is no CTemplate::add() function, then I changed in the referred error line to:
CTemplate::create
After a test, everything seems to be working really fine.
Hope it help.Comment
-
i recall a problem like that being fixed - could you try 1.8.1 ?Comment
-
The export does seem to be working in 1.8.1.
The template I'm using takes input from a vb script, I've written, that reads the alerts table in the backupexec database and then sends the relevant data back to zabbix. Its not completely finished yet, but when it is I'll post it and the template to the cookbook.
JasonComment
-
hello,
I want make a script in perl to generate items and graphs dynamically , i tested one script that i found but it doesn't run i have a msg :
-bash: ./cisco_xml.pl: /usr/bin/perl^M: bad interpreter: No such file or directory
i don't know why!
can you help me pleaseeAttached FilesComment
Comment