Email alerts in ZoneMinder

From HeepyWiki
Revision as of 03:33, 6 August 2011 by Morris (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.