--------------------------------------> гдето там вверху закончила работу процедура "DCsync_configuration", которая возникала или внутри "process_escalations" или перед ней 24923:20100818:233134.003 In DCget_nextid() table:'alerts' num:1 24923:20100818:233134.003 End of DCget_nextid() table:'alerts' [7236:7236] 24923:20100818:233134.003 Query [txnlev:1] [insert into alerts (alertid,actionid,eventid,userid,clock,mediatypeid,sendto,subject,message,status,alerttype,esc_step) values (7236,8,310278,1,1282163494,1,'mail@domain.com','DEBUG it2: PROBLEM | It_Test_log | EVENT.ID: 310278 | 33 - Text with ID | Server timestamp = 2010.08.18 23:31:33','*************************************************** EVENT.ID: 310278 TRIGGER.NAME: Tr_Test_error 33 - Text with ID ITEM.VALUE1: 33 - Text with ID ITEM.LOG.EVENTID1: 33 ITEM.LOG.SOURCE1: TestSRC ITEM.LOG.AGE1: 0m ***************************************************',0,0,0)] 24923:20100818:233134.005 End of add_message_alert() 24923:20100818:233134.005 End of execute_operations() 24923:20100818:233134.005 End of execute_escalation() 24923:20100818:233134.005 Query [txnlev:1] [update escalations set status=2,esc_step=0,nextcheck=0 where escalationid=173 and status=0] 24923:20100818:233134.005 Query [txnlev:1] [commit;] 24923:20100818:233134.009 End of process_escalations() 24923:20100818:233134.009 Escalator spent 4.228314 seconds while processing escalation items. Nextcheck after 3 sec. 24917:20100818:233134.046 In process_httptests() 24917:20100818:233134.046 Query [txnlev:0] [select t.httptestid,t.name,t.applicationid,t.nextcheck,t.status,t.delay,t.macros,t.agent,t.authentication,t.http_user,t.http_password from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.nextcheck<=1282163494 and mod(t.httptestid,1)=0 and t.status=0 and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0) and t.httptestid between 000000000000000 and 099999999999999] 24917:20100818:233134.046 End process_httptests() 24917:20100818:233134.046 Spent 0 seconds while processing HTTP tests --------------------------------------> Алерт на событие с EVENT.ID: 310278 успешно создан, письмо было отправлено --------------------------------------> но теперь далее видим что при слєдующем вызове process_escalations() опять первым начинает ошибочно обрабатываться EVENT.ID=310278 24918:20100818:233136.418 Discoverer spent 0.000847 seconds while processing rules. Nextcheck: -1 Time: 1282163496 24918:20100818:233136.418 Sleeping for 60 seconds 24923:20100818:233137.026 In process_escalations() 24923:20100818:233137.026 Query [txnlev:0] [select escalationid,actionid,triggerid,eventid,r_eventid,esc_step,status from escalations where status in (0,4,5,1) and nextcheck<=1282163497 and escalationid between 000000000000000 and 099999999999999] 24923:20100818:233137.026 Query [txnlev:1] [begin;] 24923:20100818:233137.027 In execute_escalation() 24923:20100818:233137.027 Query [txnlev:1] [select source from events where eventid=310278] 24923:20100818:233137.027 Query [txnlev:1] [select description,status from triggers where triggerid=13622] 24923:20100818:233137.027 Query [txnlev:1] [select i.description from items i,functions f,triggers t where t.triggerid=13622 and f.triggerid=t.triggerid and i.itemid=f.itemid and i.status=1] 24923:20100818:233137.027 Query [txnlev:1] [select h.host from hosts h,items i,functions f,triggers t where t.triggerid=13622 and t.triggerid=f.triggerid and f.itemid=i.itemid and i.hostid=h.hostid and h.status=1] 24923:20100818:233137.027 Query [txnlev:1] [select actionid,eventsource,esc_period,def_shortdata,def_longdata,recovery_msg,status,name from actions where actionid=8] 24923:20100818:233137.027 Query [txnlev:1] [select eventid,source,object,objectid,clock,value,acknowledged,ns from events where eventid=310278] 24923:20100818:233137.027 Query [txnlev:1] [select description,priority,comments,url,type from triggers where triggerid=13622] --------------------------------------> в результате еще раз генерирутся Алерт на это самое событие с EVENT.ID=310278 24923:20100818:233137.037 In DCget_nextid() table:'alerts' num:1 24923:20100818:233137.037 End of DCget_nextid() table:'alerts' [7237:7237] 24923:20100818:233137.037 Query [txnlev:1] [insert into alerts (alertid,actionid,eventid,userid,clock,mediatypeid,sendto,subject,message,status,alerttype,esc_step) values (7237,8,310278,1,1282163497,1,'mail@domain.com','DEBUG it2: PROBLEM | It_Test_log | EVENT.ID: 310278 | 33 - Text with ID | Server timestamp = 2010.08.18 23:31:37','*************************************************** EVENT.ID: 310278 TRIGGER.NAME: Tr_Test_error 33 - Text with ID ITEM.VALUE1: 33 - Text with ID ITEM.LOG.EVENTID1: 33 ITEM.LOG.SOURCE1: TestSRC ITEM.LOG.AGE1: 0m ***************************************************',0,0,0)] 24923:20100818:233137.037 End of add_message_alert() 24923:20100818:233137.037 End of execute_operations() 24923:20100818:233137.037 End of execute_escalation() 24923:20100818:233137.037 Query [txnlev:1] [delete from escalations where escalationid=173 and status=4] 24923:20100818:233137.037 Query [txnlev:1] [update escalations set status=1 where escalationid=173 and status=5] 24923:20100818:233137.037 Query [txnlev:1] [commit;] 24923:20100818:233137.042 Query [txnlev:1] [begin;] 24923:20100818:233137.042 In execute_escalation() 24923:20100818:233137.042 Query [txnlev:1] [select source from events where eventid=310279] --------------------------------------> дальше идет все нормально, обрабатывается следующее событие с EVENT.ID=310279