diff --git a/src/warden-server/contrib/wardenweb/show_WrongType.php b/src/warden-server/contrib/wardenweb/show_WrongType.php index a0d35aa2e8fe5f85f30ffd5f8c60eb0923a25082..98c1e670bf8c880d79a11062a6d7579c9fcf761e 100644 --- a/src/warden-server/contrib/wardenweb/show_WrongType.php +++ b/src/warden-server/contrib/wardenweb/show_WrongType.php @@ -4,14 +4,15 @@ include("db.php"); $q = "SELECT hostname, -service, +service, +type, MAX(received) as last_received, COUNT(*) as count FROM events WHERE detected > '2012-08-01' and type NOT IN ('portscan', 'bruteforce', 'probe', 'spam','phishing', 'botnet_c_c', 'dos', 'malware', 'copyright','webattack', 'test', 'other') -GROUP BY hostname, service;"; +GROUP BY hostname, service, type;"; $res = mysql_query($q, $db); if (mysql_num_rows($res) == 0) { die("nodata");}