zmaudit removing currently open recordings

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
zemerdon
Posts: 16
Joined: Wed Dec 01, 2021 2:23 pm

zmaudit removing currently open recordings

Post by zemerdon »

Good afternoon,

Small issue, maybe trivial. I feel like zmaudit would detect if a file is open and is the currently recorded file and not delete it.

My AUDIT_MIN_AGE=1

But i feel like zmaudit would detect that it is the currently recording file and this would override it. I cast my doubts because i seem to recall zmaudit NOT removing the currently recording files if i ran it in the background (i dont run zmaudit much, once a year maybe).

Is there a way to configure zmaudit to give 'no end time' priority to not delete a file ? (i mocord in 3600s segments and may just increase the audit_min_age, but was just curious on other people(s) thoughts).

Happened to all 6 cameras...

21/05/25 16:19:30.434450 zmaudit[11602].INF [main:187] [Auditing Storage Area 2 monitor at /media/monitor]
Event 146150 has no end time and is 101 seconds old. Deleting it., deleting
21/05/25 16:19:30.686116 zmaudit[11602].INF [ZoneMinder::Event:383] [Deleting event 146150 from Monitor 6 StartDateTime:2025-05-21 16:17:49 from /media/monitor/6/146150]
Event 146149 has no end time and is 166 seconds old. Deleting it., deleting
21/05/25 16:19:30.787626 zmaudit[11602].INF [ZoneMinder::Event:383] [Deleting event 146149 from Monitor 2 StartDateTime:2025-05-21 16:16:44 from /media/monitor/2/146149]
Event 146147 has no end time and is 335 seconds old. Deleting it., deleting
21/05/25 16:19:30.815160 zmaudit[11602].INF [ZoneMinder::Event:383] [Deleting event 146147 from Monitor 5 StartDateTime:2025-05-21 16:13:55 from /media/monitor/5/146147]
Event 146152 has no end time and is 45 seconds old. Deleting it., deleting
21/05/25 16:19:30.827849 zmaudit[11602].INF [ZoneMinder::Event:383] [Deleting event 146152 from Monitor 8 StartDateTime:2025-05-21 16:18:45 from /media/monitor/8/146152]
Event 146151 has no end time and is 73 seconds old. Deleting it., deleting
21/05/25 16:19:30.834139 zmaudit[11602].INF [ZoneMinder::Event:383] [Deleting event 146151 from Monitor 7 StartDateTime:2025-05-21 16:18:17 from /media/monitor/7/146151]
Event 146148 has no end time and is 259 seconds old. Deleting it., deleting
21/05/25 16:19:30.904203 zmaudit[11602].INF [ZoneMinder::Event:383] [Deleting event 146148 from Monitor 3 StartDateTime:2025-05-21 16:15:11 from /media/monitor/3/146148]
User avatar
iconnor
Posts: 3351
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: zmaudit removing currently open recordings

Post by iconnor »

This is literally why AUDIT_MIN_AGE exists and why it defaults to 86400 (1 day).
Post Reply