Hi all, I have a strange problem with some triggers (not all) that have only one action (mail notification) but I receive 2 mail when trigger change to ON and 2 when trigger change to OFF.
I set on the server the debug to 4 and this is what I see (but not understand):
005280:20070823:102503 In check_action_condition [actionid:55,conditionid:253:cond.value:16479]
005279:20070823:102503 In get_value_SNMP() 0.3
005280:20070823:102503 Condition is FALSE
005280:20070823:102503 In check_action_condition [actionid:55,conditionid:268:cond.value:16850]
005280:20070823:102503 Condition is TRUE
005280:20070823:102503 Conditions are TRUE
005280:20070823:102503 Conditions match our trigger. Do apply actions.
005280:20070823:102503 In substitute_macros([{TRIGGER.NAME}: {STATUS}])
005280:20070823:102503 In substitute_simple_macros [{TRIGGER.NAME}: {STATUS}]
005280:20070823:102503 In substitute_simple_macros [Palina 526 'Via Diaz 2' is down]
005280:20070823:102503 Result expression [Palina 526 'Via Diaz 2' is down]
005280:20070823:102503 Result expression [Palina 526 'Via Diaz 2' is down: OFF]
005280:20070823:102503 Result expression:Palina 526 'Via Diaz 2' is down: OFF
005280:20070823:102503 In substitute_macros([{TRIGGER.NAME}: {STATUS}])
005280:20070823:102503 In substitute_simple_macros [Palina 526 'Via Diaz 2' is down]
005280:20070823:102503 Result expression [Palina 526 'Via Diaz 2' is down]
005280:20070823:102503 Result expression [Palina 526 'Via Diaz 2' is down: OFF]
005280:20070823:102503 Result expression:Palina 526 'Via Diaz 2' is down: OFF
005280:20070823:102503 Executing query:select u.userid from users u, users_groups ug where ug.usrgrpid=6 and ug.userid=u.userid
005280:20070823:102503 Executing query:select mediatypeid,sendto,active,severity,period from media where active=0 and userid=1
005280:20070823:102503 Trigger severity [3] Media severity [56] Period [1-7,00:00-23:59;]
005280:20070823:102503 In check_time_period(1-7,00:00-23:59
005280:20070823:102503 Period [1-7,00:00-23:59]
005280:20070823:102503 1-7,0:0-23:59
005280:20070823:102503 In add_alert(triggerid[16850])
005280:20070823:102503 Executing query:insert into alerts (actionid,triggerid,userid,clock,mediatypeid,sendt o,subject,message,status,retries,maxrepeats,dela$
005280:20070823:102503 Trigger severity [3] Media severity [56] Period [1-7,00:00-23:59;]
005280:20070823:102503 In check_time_period(1-7,00:00-23:59
005280:20070823:102503 Period [1-7,00:00-23:59]
005280:20070823:102503 1-7,0:0-23:59
The log are cutted but if you want I have the complete log saved.
The trigger that arrive double are: Palina 526 'Via Diaz 2' is down
Thanks Enrico
I set on the server the debug to 4 and this is what I see (but not understand):
005280:20070823:102503 In check_action_condition [actionid:55,conditionid:253:cond.value:16479]
005279:20070823:102503 In get_value_SNMP() 0.3
005280:20070823:102503 Condition is FALSE
005280:20070823:102503 In check_action_condition [actionid:55,conditionid:268:cond.value:16850]
005280:20070823:102503 Condition is TRUE
005280:20070823:102503 Conditions are TRUE
005280:20070823:102503 Conditions match our trigger. Do apply actions.
005280:20070823:102503 In substitute_macros([{TRIGGER.NAME}: {STATUS}])
005280:20070823:102503 In substitute_simple_macros [{TRIGGER.NAME}: {STATUS}]
005280:20070823:102503 In substitute_simple_macros [Palina 526 'Via Diaz 2' is down]
005280:20070823:102503 Result expression [Palina 526 'Via Diaz 2' is down]
005280:20070823:102503 Result expression [Palina 526 'Via Diaz 2' is down: OFF]
005280:20070823:102503 Result expression:Palina 526 'Via Diaz 2' is down: OFF
005280:20070823:102503 In substitute_macros([{TRIGGER.NAME}: {STATUS}])
005280:20070823:102503 In substitute_simple_macros [Palina 526 'Via Diaz 2' is down]
005280:20070823:102503 Result expression [Palina 526 'Via Diaz 2' is down]
005280:20070823:102503 Result expression [Palina 526 'Via Diaz 2' is down: OFF]
005280:20070823:102503 Result expression:Palina 526 'Via Diaz 2' is down: OFF
005280:20070823:102503 Executing query:select u.userid from users u, users_groups ug where ug.usrgrpid=6 and ug.userid=u.userid
005280:20070823:102503 Executing query:select mediatypeid,sendto,active,severity,period from media where active=0 and userid=1
005280:20070823:102503 Trigger severity [3] Media severity [56] Period [1-7,00:00-23:59;]
005280:20070823:102503 In check_time_period(1-7,00:00-23:59

005280:20070823:102503 Period [1-7,00:00-23:59]
005280:20070823:102503 1-7,0:0-23:59
005280:20070823:102503 In add_alert(triggerid[16850])
005280:20070823:102503 Executing query:insert into alerts (actionid,triggerid,userid,clock,mediatypeid,sendt o,subject,message,status,retries,maxrepeats,dela$
005280:20070823:102503 Trigger severity [3] Media severity [56] Period [1-7,00:00-23:59;]
005280:20070823:102503 In check_time_period(1-7,00:00-23:59

005280:20070823:102503 Period [1-7,00:00-23:59]
005280:20070823:102503 1-7,0:0-23:59
The log are cutted but if you want I have the complete log saved.
The trigger that arrive double are: Palina 526 'Via Diaz 2' is down
Thanks Enrico