Email alerts in ZoneMinder: Difference between revisions

From HeepyWiki
Jump to navigation Jump to search
Created page with "'''Making ZoneMinder not spam you with all past events''' If you create a background alert to sent email or text messages or whatever, there's no way to tell zoneminder that you…"
 
No edit summary
 
Line 1: Line 1:
'''Making ZoneMinder not spam you with all past events'''
'''Making ZoneMinder not spam you with all past events'''


If you create a background alert to sent email or text messages or whatever, there's no way to tell zoneminder that you only want that alert to be triggered on *new* events - which is to say, there's no way to prevent it from sending you an email alert for every single matching even that's ever been saved since you first installed zoneminder. I learned that "Unarchived" does not mean what I thought it meant when I got 5509 emails for events going back several years.  
If you create a background alert to sent email or text messages or whatever, there's no way to tell zoneminder that you only want that alert to be triggered on *new* events - which is to say, there's no way to prevent it from sending you an email alert for every single matching event that's ever been saved since you first installed zoneminder. I learned that "Unarchived" does not mean what I thought it meant when I got 5509 emails for events going back several years.  


Although there's no way to do this through the UI, you can just edit the zm database directly:
Although there's no way to do this through the UI, you can just edit the zm database directly:
Line 8: Line 8:
update Events set Emailed = 1 where Emailed = 0;
update Events set Emailed = 1 where Emailed = 0;
</pre>
</pre>
likewise for "Paged" if you're using the pager version rather than the email version.

Latest revision as of 03:33, 6 August 2011

Making ZoneMinder not spam you with all past events

If you create a background alert to sent email or text messages or whatever, there's no way to tell zoneminder that you only want that alert to be triggered on *new* events - which is to say, there's no way to prevent it from sending you an email alert for every single matching event that's ever been saved since you first installed zoneminder. I learned that "Unarchived" does not mean what I thought it meant when I got 5509 emails for events going back several years.

Although there's no way to do this through the UI, you can just edit the zm database directly:

update Events set Emailed = 1 where Emailed = 0;

likewise for "Paged" if you're using the pager version rather than the email version.