Error sql zmfilter
Posted: Tue Mar 10, 2020 5:53 pm
Hello,
I'm a newby and french guy so..
I have a error in zmfilter: Can't execute filter 'SELECT E.*, unix_timestamp(E.StartTime) as Time, M.Name as MonitorName, M.DefaultRate, M.DefaultScale FROM Events as E INNER JOIN Monitors as M on M.Id = E.MonitorId LEFT JOIN Storage as S on S.Id = E.StorageId WHERE (E.EndTime IS NOT NULL) AND ( E.AlarmFrames > -60 seconds ) AND ( E.Emailed = 0 ) ORDER BY E.Id DESC LIMIT 0,1', ignoring: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'seconds ) AND ( E.Emailed = 0 ) ORDER BY E.Id DESC LIMIT 0,1' at line 9.
When i try this request in phpmyadmin (ZM, filters) same result until i write [E.AlarmFrames > '-60 seconds'] !
Also when i try this filter with List Matches it's work!
What i've done wrong?
Thanks
I'm a newby and french guy so..
I have a error in zmfilter: Can't execute filter 'SELECT E.*, unix_timestamp(E.StartTime) as Time, M.Name as MonitorName, M.DefaultRate, M.DefaultScale FROM Events as E INNER JOIN Monitors as M on M.Id = E.MonitorId LEFT JOIN Storage as S on S.Id = E.StorageId WHERE (E.EndTime IS NOT NULL) AND ( E.AlarmFrames > -60 seconds ) AND ( E.Emailed = 0 ) ORDER BY E.Id DESC LIMIT 0,1', ignoring: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'seconds ) AND ( E.Emailed = 0 ) ORDER BY E.Id DESC LIMIT 0,1' at line 9.
When i try this request in phpmyadmin (ZM, filters) same result until i write [E.AlarmFrames > '-60 seconds'] !
Also when i try this filter with List Matches it's work!
What i've done wrong?
Thanks