Skip to content

Commit 2a4e4b1

Browse files
committed
Change housekeeper truncate to delete without events
1 parent 671c309 commit 2a4e4b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql_zbx_part.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ sub date_next_part {
222222

223223
sub delete_old_data {
224224
$dbh->do("DELETE FROM sessions WHERE lastaccess < UNIX_TIMESTAMP(NOW() - INTERVAL 1 MONTH)");
225-
$dbh->do("DELETE FROM housekeeper WHERE `tablename` !='events'");
225+
$dbh->do("DELETE FROM housekeeper WHERE `tablename` !='events'");
226226

227227
# Uncomment the following line for Zabbix 5.4 and earlier
228228
# $dbh->do("DELETE FROM auditlog_details WHERE NOT EXISTS (SELECT NULL FROM auditlog WHERE auditlog.auditid = auditlog_details.auditid)");

0 commit comments

Comments
 (0)