Hi there,
I was just about to test zabbix 1.4 with a sqlite3 database, and I ran in some trouble.
I'm using PHP 5.2.2 with PDO sqlite3 support, php -i:
Creating an initial database succeded without errors, the file is located in /tmp/zabbix.db - and currently world writable.
For the server is set
The server does start up, but i get a lot of messages in zabbix_server.log, saying:
For the php frontend, I set
But heading to index.php always brings me to setup.php, which only supports mysql it seems. When I hit "cancel", I get this error message:
Do I just miss some settings here, e.g. in PHP? Or is that PDO driver not the one I need in PHP?
Reading http://forums.gentoo.org/viewtopic-t...5+sqlite3.html PDO seems to be the only way for sqlite3 in php5.x
Any help would be appretiated.
I was just about to test zabbix 1.4 with a sqlite3 database, and I ran in some trouble.
I'm using PHP 5.2.2 with PDO sqlite3 support, php -i:
Code:
pdo_sqlite PDO Driver for SQLite 3.x => enabled PECL Module version => 1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6.2.2 2007/03/23 14:30:00 wez Exp $ SQLite Library => 3.3.17
For the server is set
Code:
DBName=/tmp/zabbix.db
/usr/sbin/zabbix_server [23076]: php_sysvsem_semop: failed to acquire semaphore (id 13008900): Invalid argument
/usr/sbin/zabbix_server [23076]: SysV semaphore (id 13008900) is not currently acquired.
/usr/sbin/zabbix_server [23076]: php_sysvsem_semop: failed to acquire semaphore (id 13008900): Invalid argument
/usr/sbin/zabbix_server [23076]: SysV semaphore (id 13008900) is not currently acquired.
/usr/sbin/zabbix_server [23058]: php_sysvsem_semop: failed to acquire semaphore (id 13008900): Invalid argument
/usr/sbin/zabbix_server [23058]: SysV semaphore (id 13008900) is not currently acquired.
/usr/sbin/zabbix_server [23058]: php_sysvsem_semop: failed to acquire semaphore (id 13008900): Invalid argument
/usr/sbin/zabbix_server [23058]: SysV semaphore (id 13008900) is not currently acquired.
/usr/sbin/zabbix_server [23076]: SysV semaphore (id 13008900) is not currently acquired.
/usr/sbin/zabbix_server [23076]: php_sysvsem_semop: failed to acquire semaphore (id 13008900): Invalid argument
/usr/sbin/zabbix_server [23076]: SysV semaphore (id 13008900) is not currently acquired.
/usr/sbin/zabbix_server [23058]: php_sysvsem_semop: failed to acquire semaphore (id 13008900): Invalid argument
/usr/sbin/zabbix_server [23058]: SysV semaphore (id 13008900) is not currently acquired.
/usr/sbin/zabbix_server [23058]: php_sysvsem_semop: failed to acquire semaphore (id 13008900): Invalid argument
/usr/sbin/zabbix_server [23058]: SysV semaphore (id 13008900) is not currently acquired.
Code:
$DB_TYPE = "SQLITE3"; $DB_SERVER = "localhost"; $DB_DATABASE = "/tmp/zabbix.db"; $DB_USER = "root"; $DB_PASSWORD = "";
Fatal error: Call to undefined function sqlite3_open() in /var/www/localhost/htdocs/zabbix-frontend/include/db.inc.php on line 126
Reading http://forums.gentoo.org/viewtopic-t...5+sqlite3.html PDO seems to be the only way for sqlite3 in php5.x
Any help would be appretiated.
Comment