All Forums
> NetWorx
> Current topic
How to decrease the frequency of event triggering and email alerts
Started by Lance Kepner
Lance Kepner
How to decrease the frequency of event triggering and email alerts 03 August 2016, 06:52 |
I am testing out Networx (exceptional, btw) for detecting some youtube usage. I have everything set up to detect a reasonable amount of data within a given time frame, and have tested to make sure its in a sweet spot for our network. It triggers just fine. The trigger calls a batch file that runs two powershell scripts, first to generate the iexplore urls and export to a file then another to send and email of that file.
My problem is that Networx triggers almost once every minute. I need to know if there is a way to set the trigger timing in any way so I am not spamming myself with email alerts.
Thank you.
My problem is that Networx triggers almost once every minute. I need to know if there is a way to set the trigger timing in any way so I am not spamming myself with email alerts.
Thank you.
Re: How to decrease the frequency of event triggering and email alerts 03 August 2016, 14:07 |
Admin Registered: 18 years ago Posts: 3 519 |
There isn't a way to limit the rate of notifications at the moment. Naturally they are sent as often as they occur, which yes, can be every minute.
The simplest way to deal with it, say if you want to have the notifications sent no more than once an hour, is to use the following batch file. It creates a file with the current hour as its file name. This file is treated as a flag, so no matter how many times this script runs, it will only print a message at most once an hour. This can be easily adapted to sending e-mails:
The simplest way to deal with it, say if you want to have the notifications sent no more than once an hour, is to use the following batch file. It creates a file with the current hour as its file name. This file is treated as a flag, so no matter how many times this script runs, it will only print a message at most once an hour. This can be easily adapted to sending e-mails:
@set hr=%TIME:~0,2% @if exist hour-%hr% ( @rem do nothing ) else ( @del /Q hour-* @copy nul hour-%hr% @echo Print this once an hour )
Lance Kepner
Re: How to decrease the frequency of event triggering and email alerts 03 August 2016, 22:36 |
Lance Kepner
Re: How to decrease the frequency of event triggering and email alerts 03 August 2016, 23:01 |
Re: How to decrease the frequency of event triggering and email alerts 03 August 2016, 23:52 |
Admin Registered: 18 years ago Posts: 3 519 |