Hi!
You can achieve this by storing timestamp of node down event and checking it on node up. You can use custom attributes and scripting for this. For example, you can create the following script in script library, named "OnNodeDown" for example:
then create action "execute script" to execute "OnNodeDown" script, and add it in event processing policy to the rule processing SYS_NODE_DOWN event.
Then create separate rule for sending e-mails on SYS_NODE_UP, with additional filtering script like this:
With this filtering script, only SYS_NODE_UP events happens 5 or more minutes later then SYS_NODE_DOWN event will pass the filter.
More information about scripting you can found here: http://wiki.netxms.org/wiki/Scripting_Guide.
Best regards,
Victor
You can achieve this by storing timestamp of node down event and checking it on node up. You can use custom attributes and scripting for this. For example, you can create the following script in script library, named "OnNodeDown" for example:
Code Select
SetCustomAttribute($node, "nodeDownTimestamp", time());
then create action "execute script" to execute "OnNodeDown" script, and add it in event processing policy to the rule processing SYS_NODE_DOWN event.
Then create separate rule for sending e-mails on SYS_NODE_UP, with additional filtering script like this:
Code Select
t = GetCustomAttribute($node, "nodeDownTimestamp");
interval = time() - t; // get interval in seconds between down and up events
return (interval >= 300);
With this filtering script, only SYS_NODE_UP events happens 5 or more minutes later then SYS_NODE_DOWN event will pass the filter.
More information about scripting you can found here: http://wiki.netxms.org/wiki/Scripting_Guide.
Best regards,
Victor
Постараюсь в 1.2.5 сделать.
