We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 693d62e commit 671c309Copy full SHA for 671c309
mysql_zbx_part.pl
@@ -222,7 +222,8 @@ sub date_next_part {
222
223
sub delete_old_data {
224
$dbh->do("DELETE FROM sessions WHERE lastaccess < UNIX_TIMESTAMP(NOW() - INTERVAL 1 MONTH)");
225
- $dbh->do("TRUNCATE housekeeper");
+ $dbh->do("DELETE FROM housekeeper WHERE `tablename` !='events'");
226
+
227
# Uncomment the following line for Zabbix 5.4 and earlier
228
# $dbh->do("DELETE FROM auditlog_details WHERE NOT EXISTS (SELECT NULL FROM auditlog WHERE auditlog.auditid = auditlog_details.auditid)");
229
}
0 commit comments