Created
September 14, 2020 19:49
-
-
Save lcuevastodoit/0620b11c2592ee26bca5118474ab29b8 to your computer and use it in GitHub Desktop.
Clean Zabbix Database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mv /etc/supervisor/conf.d/supervisord_server.conf /etc/supervisor/conf.d/supervisord_server.conf.old | |
#reboot zabbix container | |
mysql -uroot -p | |
use zabbix; | |
Database changed | |
mysql> TRUNCATE TABLE history_uint; | |
Query OK, 0 rows affected (0.66 sec) | |
mysql> TRUNCATE TABLE history; | |
Query OK, 0 rows affected (0.52 sec) | |
mysql> TRUNCATE TABLE history_text; | |
Query OK, 0 rows affected (0.17 sec) | |
exit | |
mv /etc/supervisor/conf.d/supervisord_server.conf.old /etc/supervisor/conf.d/supervisord_server.conf | |
#reboot zabbix container |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment