PDA

View Full Version : Actions


safl
07-06-2005, 10:56
I want to add actions for a hosts so whatever mistake occurs i want a user to be informed.
So i add an action with scope = 1. I use add_action like this:

add_action("12319", "3", "2", "30", "*Automatically generated*", "*Automatically generated*", "1", "0", "0", "0");
So user '3' will get information on whatever. My question is, why do i need to simply a triggerid? I want the action to react on all triggers so would't suplying a hostid make more sense?

-Simon

Alexei
26-06-2005, 17:39
Yes, it would be more logical. However, this would also introduce known complexity of the GUI and data structures. Perhaps I'll re-implement it differently at some point.