I've installed zabbix on Debian from lenny-backports:
and created new host from Template_SNMPv2_Device. Now I want to deactivate some items that my devices does not support. Trying to do this from web-interface gives me such error:
If I try to deactivate few items at a time, web-interface hangs and postgres log fills with errors until zabbix-server is stopped and postgres process killed:
I haven't noticed such problems on my previous MySQL zabbix installation, but after zabbix lost few items after mysql server poweroff, I no longer want to use MySQL for such data.
Code:
db:/var/log/zabbix-server# db:/var/log/postgresql# dpkg -l | grep zabbix ii zabbix-agent 1:1.6.6-1~bpo50+1 network monitoring solution - agent ii zabbix-server-pgsql 1:1.6.6-1~bpo50+1 network monitoring solution - server (using PostgreSQL)
Code:
pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: invalid byte sequence for encoding "UTF8": 0xd12e HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".[/var/www/adm.dominion.dn.ua/html/zab/include/db.inc.php:465] Error in query [INSERT INTO auditlog (auditid,userid,clock,action,resourcetype,details) values (506,3,1256378993,1,15,'Элемент данных [lmemBufferNoMem] [22591] Узел сети [4012]Элементы данных деактиви�...')] [ERROR: invalid byte sequence for encoding "UTF8": 0xd12e HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".] pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block[/var/www/adm.dominion.dn.ua/html/zab/include/db.inc.php:392] Error in query [SELECT itemid, hostid FROM items WHERE (templateid IN (22591)) ] [ERROR: current transaction is aborted, commands ignored until end of transaction block] pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/adm.dominion.dn.ua/html/zab/include/db.inc.php:522] pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block[/var/www/adm.dominion.dn.ua/html/zab/include/db.inc.php:392] Error in query [SELECT itemid, status FROM items WHERE (itemid IN (22591)) ] [ERROR: current transaction is aborted, commands ignored until end of transaction block] pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/adm.dominion.dn.ua/html/zab/include/db.inc.php:522] pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block[/var/www/adm.dominion.dn.ua/html/zab/include/db.inc.php:392] Error in query [SELECT DISTINCT t.triggerid FROM triggers t,functions f WHERE f.triggerid=t.triggerid AND (f.itemid IN (22591)) ] [ERROR: current transaction is aborted, commands ignored until end of transaction block] pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/adm.dominion.dn.ua/html/zab/include/db.inc.php:522] pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block[/var/www/adm.dominion.dn.ua/html/zab/include/db.inc.php:465] Error in query [UPDATE items SET status=1 WHERE (itemid IN (22591)) ] [ERROR: current transaction is aborted, commands ignored until end of transaction block]
Code:
2009-10-24 13:08:56 EEST STATEMENT: SELECT nextid FROM ids WHERE nodeid=0 AND table_name='auditlog' AND field_name='auditid' 2009-10-24 13:08:56 EEST ERROR: current transaction is aborted, commands ignored until end of transaction block 2009-10-24 13:08:56 EEST STATEMENT: SELECT max(auditid) AS id FROM auditlog WHERE auditid>=0 AND auditid<=99999999999 2009-10-24 13:08:56 EEST ERROR: current transaction is aborted, commands ignored until end of transaction block 2009-10-24 13:08:56 EEST STATEMENT: INSERT INTO ids (nodeid,table_name,field_name,nextid) VALUES (0,'auditlog','auditid',0) 2009-10-24 13:08:56 EEST ERROR: current transaction is aborted, commands ignored until end of transaction block 2009-10-24 13:08:56 EEST STATEMENT: SELECT nextid FROM ids WHERE nodeid=0 AND table_name='auditlog' AND field_name='auditid' 2009-10-24 13:08:56 EEST ERROR: current transaction is aborted, commands ignored until end of transaction block 2009-10-24 13:08:56 EEST STATEMENT: SELECT max(auditid) AS id FROM auditlog WHERE auditid>=0 AND auditid<=99999999999 2009-10-24 13:08:56 EEST ERROR: current transaction is aborted, commands ignored until end of transaction block 2009-10-24 13:08:56 EEST STATEMENT: INSERT INTO ids (nodeid,table_name,field_name,nextid) VALUES (0,'auditlog','auditid',0) 2009-10-24 13:08:56 EEST ERROR: current transaction is aborted, commands ignored until end of transaction block 2009-10-24 13:08:56 EEST STATEMENT: SELECT nextid FROM ids WHERE nodeid=0 AND table_name='auditlog' AND field_name='auditid' 2009-10-24 13:08:57 EEST ERROR: current transaction is aborted, commands ignored until end of transaction block 2009-10-24 13:08:57 EEST STATEMENT: SELECT max(auditid) AS id FROM auditlog WHERE auditid>=0 AND auditid<=99999999999 ..... and much more here
Comment