のぶろぐ 30代のインフラエンジニアはこうです

(;'Д`)ハァハァ ようやく世の中が無菌室で無いことに気づいたよ

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