PDA

View Full Version : Resetting Triggers


trikke
28-08-2007, 11:35
Hi ,

ist there a possibility to reset all/some triggers, so that the next intervall, all the actions are executed again?

Thanx

Patrick



Using P.S.: Zabbix 1.4.2 on Sun Solaris with mysql

trikke
04-09-2007, 15:34
Problem solved!

I did some reverse engineering and found out, if I would delete the Events corresponding to the Item/Trigger, Triggers and Actions will be fired again.

Delete Events with following sql: "delete from events where objectid=<your object id>;" Where objectid = triggerid

Other possibility is depending on your Triggerdefinition alter the Item Lastvalue, so that u simulate a item state change.
Use following SQL: "update items set lastvalue=0 where hostid=<hostid> and itemid=<itemID>;"


Can someone confirm this??? Alexei ????