diff --git a/web/skins/classic/views/_monitor_filters.php b/web/skins/classic/views/_monitor_filters.php index 3c7165ebe..f80bd1f5b 100644 --- a/web/skins/classic/views/_monitor_filters.php +++ b/web/skins/classic/views/_monitor_filters.php @@ -171,10 +171,14 @@ $html .= ' $html .= ' '; - $sql = 'SELECT *,S.Status AS Status, S.CaptureFPS AS CaptureFPS, S.AnalysisFPS AS AnalysisFPS, S.CaptureBandwidth AS CaptureBandwidth - FROM Monitors AS M LEFT JOIN Monitor_Status AS S ON MonitorId=Id ' . + $sql = 'SELECT M.*, S.*, E.* + FROM Monitors AS M + LEFT JOIN Monitor_Status AS S ON S.MonitorId=M.Id + LEFT JOIN Event_Summaries AS E ON E.MonitorId=M.Id +' . ( count($conditions) ? ' WHERE ' . implode(' AND ', $conditions) : '' ).' ORDER BY Sequence ASC'; $monitors = dbFetchAll($sql, null, $values); + ZM\Debug(print_r($monitors, true)); $displayMonitors = array(); $monitors_dropdown = array();