Zabbix server: 5.4.6
Mariadb: 10.5.11
Hi all and thank you for your time in advance,
We are facing the following case, when a user tries to search problems from the UI, Monitoring->Problems->Problems without filtering the timeframe from “Age less than”, the cpu utilization of the database is peaked.
In order for this behavior to stop we need to restart the php-fpm service.
From our investigation, we noticed that from the above task, the application searches on the table "problem", which has almost 850.000 entries.
These problems are unresolved but frozen, because the corresponding trigger is disabled.
Also, we have similar unresolved cases for the table “events”, when we search through Monitoring->Problems->History.
We noticed that, when a problem is recovered, the following columns are filled in the problem table: r_eventid, r_clock, r_ns and userid.
I would like to know which is the best way to safely delete or clean the database from these entries, to delete these entries from the problem table or to update the above columns on the pending problems.
Another case is to enable the trigger back and manual close the open problems, but we do not want to do that because the system is overload.
Thanks again for your time
Mariadb: 10.5.11
Hi all and thank you for your time in advance,
We are facing the following case, when a user tries to search problems from the UI, Monitoring->Problems->Problems without filtering the timeframe from “Age less than”, the cpu utilization of the database is peaked.
In order for this behavior to stop we need to restart the php-fpm service.
From our investigation, we noticed that from the above task, the application searches on the table "problem", which has almost 850.000 entries.
These problems are unresolved but frozen, because the corresponding trigger is disabled.
Also, we have similar unresolved cases for the table “events”, when we search through Monitoring->Problems->History.
We noticed that, when a problem is recovered, the following columns are filled in the problem table: r_eventid, r_clock, r_ns and userid.
I would like to know which is the best way to safely delete or clean the database from these entries, to delete these entries from the problem table or to update the above columns on the pending problems.
Another case is to enable the trigger back and manual close the open problems, but we do not want to do that because the system is overload.
Thanks again for your time
Comment