Last active
July 4, 2018 02:43
-
-
Save FilBot3/709f52b03a59a45f5c5c to your computer and use it in GitHub Desktop.
Zabbix SQL queries to help "fix" issues
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
USE zabbix_proxy; | |
TRUNCATE TABLE proxy_history; | |
DELETE FROM ids; | |
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
USE zabbix; | |
DELETE FROM escalations; | |
UPDATE alerts SET status=1 WHERE status=0; | |
SELECT count(*) FROM escalations; | |
SELECT count(*) FROM alerts WHERE status=0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment