Problem with Disk Percent on v1.37.13

Current Development version likely to have breaking changes
Post Reply
manfzimm
Posts: 2
Joined: Wed Apr 20, 2022 2:34 pm

Problem with Disk Percent on v1.37.13

Post by manfzimm »

Hi

I'm running ZM v1.37.13

It is not possible to Purge my (nearly) full disk (96 %).

Storage Area matches default
Disk Percent greater than or equal to 90
End Date/Time is not NULL

When I test by using "list matches" the page display not a single event

When I use the "Debug"-button I get this Information:
SQL SELECT E.*,M.Name AS MonitorName,M.DefaultScale
FROM Monitors AS M INNER JOIN Events AS E ON (M.Id = E.MonitorId)
WHERE
E.StorageId regexp '2' and TRUE /*DiskPercent*/ and E.EndDateTime IS NOT NULL ORDER BY Id ASC LIMIT 10

As you see the SQL-satement does not use the "90" for/*DiskPercent*/.....

Is there a solution ?


Thanx

Manfred
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Problem with Disk Percent on v1.37.13

Post by Magic919 »

Why would it? Surely it's a variable.
-
User avatar
Andyrh
Posts: 243
Joined: Sat Oct 28, 2017 3:55 am

Re: Problem with Disk Percent on v1.37.13

Post by Andyrh »

Be sure the storage area is listed in the filter. Otherwise it only looks at the original storage area.
Andy
o||||o

Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
manfzimm
Posts: 2
Joined: Wed Apr 20, 2022 2:34 pm

Re: Problem with Disk Percent on v1.37.13

Post by manfzimm »

Thanks for responding.

Yes, it is a variable. And disk usage is shown in the control panel STORAGE --> DEFAULT: 96 %

The storage area is also listed in the filter (dropdown --> DEFAULT).

If I delete the line "Disk Percent" and "LIST MATCHES" shows events.
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Problem with Disk Percent on v1.37.13

Post by dougmccrary »

The default limit is 100.
Suggest you try that or even 1000.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Problem with Disk Percent on v1.37.13

Post by knight-of-ni »

moved to the1.37 forum
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
iconnor
Posts: 2879
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Problem with Disk Percent on v1.37.13

Post by iconnor »

The Debug button uses different code than the actual filter. What we need \to do here is turn on debugging, restart the filter and check the filter logs to see what the actual SQL is.
Post Reply