Infra DevOps

インフラ構築のナレッジや、運用の自動簡易化に関する記事を書いていこうと思います

zabbixの大量メール配信を止める

# mysql -uzabbix -pzabbix

mysql> use zabbix

Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> SELECT COUNT(*) FROM alerts WHERE status = "0";

mysql> UPDATE alerts SET status = "1" where status = "0";
mysql> SELECT COUNT(*) FROM alerts WHERE status = "0";
mysql> exit