my zabbix server is falling when i try to watch the Overview page, this is the debug log:
18133:20071205:083523 In delete_history(history,25049,5140497389936705543,1 1582191)
18133:20071205:083523 Query [select min(clock) from history where itemid=25049]
18133:20071205:083523 Query [delete from history where itemid=25049 and clock<14400]
18082:20071205:083523 Query::insert into trends (clock,itemid,num,value_min,value_avg,value_max) values (1196863200,32075,1,0.000000,0.000000,0.000000)
18082:20071205:083523 Query failed:PGRES_FATAL_ERROR:ERROR: duplicate key violates unique constraint "trends_pkey"
18082:20071205:083523 End of add_history
18082:20071205:083523 In update_item()
18082:20071205:083523 In calculate_item_nextcheck (32075,30,,1196865323)
18082:20071205:083523 End calculate_item_nextcheck (result:1196865335)
18082:20071205:083523 Query [update items set nextcheck=1196865335,prevvalue=lastvalue,lastvalue ='0.000000',lastclock=1196865323 where itemid=32075]
18133:20071205:083523 In delete_history(history_uint,25049,5140497389936705 543,0)
18133:20071205:083523 Query [select min(clock) from history_uint where itemid=25049]
18082:20071205:083523 Query::update items set nextcheck=1196865335,prevvalue=lastvalue,lastvalue ='0.000000',lastclock=1196865323 where itemid=32075
18082:20071205:083523 Query failed:PGRES_FATAL_ERROR:ERROR: current transaction is aborted, commands ignored until end of transaction block
18082:20071205:083523 End update_item()
18082:20071205:083523 In update_functions(32075)
18082:20071205:083523 Query [select distinct function,parameter,itemid,lastvalue from functions where itemid=32075]
18133:20071205:083523 Query [delete from history_uint where itemid=25049 and clock<14400]
18082:20071205:083523 Query::select distinct function,parameter,itemid,lastvalue from functions where itemid=32075
18082:20071205:083523 Query failed:PGRES_FATAL_ERROR:ERROR: current transaction is aborted, commands ignored until end of transaction block
18084:20071205:083523 After write()
18133:20071205:083523 In delete_history(history_str,25049,51404973899367055 43,0)
18133:20071205:083523 Query [select min(clock) from history_str where itemid=25049]
18133:20071205:083523 Query [delete from history_str where itemid=25049 and clock<14400]
17869:20071205:083523 One child process died. Exiting ...
... continues ...
18096:20071205:083523 Got signal. Exiting ...
18154:20071205:083523 Got signal. Exiting ...
18153:20071205:083523 Got signal. Exiting ...
17869:20071205:083525 ZABBIX Server stopped
i deleted the duplicated records (967 rows) but it seems they are coming from other table and the deuplicated key insert happends again.
zabbix=> delete from trends where clock=1196863200;
[root@xx ~]# ll /var/run/zabbix/zabbix_server.pid
ls: /var/run/zabbix/zabbix_server.pid: No such file or directory
when i start zabbix there is no zabbix PID, but the logs shows this
/usr/local/sbin/zabbix_server [11086]: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
/usr/local/sbin/zabbix_server [11086]: ERROR: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
/usr/local/sbin/zabbix_server [11097]: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
/usr/local/sbin/zabbix_server [11097]: ERROR: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
i have:
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
postgres (PostgreSQL) 8.2.4
ZABBIX Server (daemon) v1.4.2 (20 August 2007)
18133:20071205:083523 In delete_history(history,25049,5140497389936705543,1 1582191)
18133:20071205:083523 Query [select min(clock) from history where itemid=25049]
18133:20071205:083523 Query [delete from history where itemid=25049 and clock<14400]
18082:20071205:083523 Query::insert into trends (clock,itemid,num,value_min,value_avg,value_max) values (1196863200,32075,1,0.000000,0.000000,0.000000)
18082:20071205:083523 Query failed:PGRES_FATAL_ERROR:ERROR: duplicate key violates unique constraint "trends_pkey"
18082:20071205:083523 End of add_history
18082:20071205:083523 In update_item()
18082:20071205:083523 In calculate_item_nextcheck (32075,30,,1196865323)
18082:20071205:083523 End calculate_item_nextcheck (result:1196865335)
18082:20071205:083523 Query [update items set nextcheck=1196865335,prevvalue=lastvalue,lastvalue ='0.000000',lastclock=1196865323 where itemid=32075]
18133:20071205:083523 In delete_history(history_uint,25049,5140497389936705 543,0)
18133:20071205:083523 Query [select min(clock) from history_uint where itemid=25049]
18082:20071205:083523 Query::update items set nextcheck=1196865335,prevvalue=lastvalue,lastvalue ='0.000000',lastclock=1196865323 where itemid=32075
18082:20071205:083523 Query failed:PGRES_FATAL_ERROR:ERROR: current transaction is aborted, commands ignored until end of transaction block
18082:20071205:083523 End update_item()
18082:20071205:083523 In update_functions(32075)
18082:20071205:083523 Query [select distinct function,parameter,itemid,lastvalue from functions where itemid=32075]
18133:20071205:083523 Query [delete from history_uint where itemid=25049 and clock<14400]
18082:20071205:083523 Query::select distinct function,parameter,itemid,lastvalue from functions where itemid=32075
18082:20071205:083523 Query failed:PGRES_FATAL_ERROR:ERROR: current transaction is aborted, commands ignored until end of transaction block
18084:20071205:083523 After write()
18133:20071205:083523 In delete_history(history_str,25049,51404973899367055 43,0)
18133:20071205:083523 Query [select min(clock) from history_str where itemid=25049]
18133:20071205:083523 Query [delete from history_str where itemid=25049 and clock<14400]
17869:20071205:083523 One child process died. Exiting ...
... continues ...
18096:20071205:083523 Got signal. Exiting ...
18154:20071205:083523 Got signal. Exiting ...
18153:20071205:083523 Got signal. Exiting ...
17869:20071205:083525 ZABBIX Server stopped
i deleted the duplicated records (967 rows) but it seems they are coming from other table and the deuplicated key insert happends again.
zabbix=> delete from trends where clock=1196863200;
[root@xx ~]# ll /var/run/zabbix/zabbix_server.pid
ls: /var/run/zabbix/zabbix_server.pid: No such file or directory
when i start zabbix there is no zabbix PID, but the logs shows this
/usr/local/sbin/zabbix_server [11086]: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
/usr/local/sbin/zabbix_server [11086]: ERROR: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
/usr/local/sbin/zabbix_server [11097]: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
/usr/local/sbin/zabbix_server [11097]: ERROR: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
i have:
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
postgres (PostgreSQL) 8.2.4
ZABBIX Server (daemon) v1.4.2 (20 August 2007)
Comment