Eight days ago, a flapping snmptrap caused the Zabbix Server to run out of diskspace and crash. The server log had lots of sql errors about not being able to find various temporary tables - the database was now corrupted, and Zabbix slowed to a snails pace.
I dumped the database. Re-imported the database. Then ran mysqlcheck to check, repair, and optimize the tables.
Yesterday at 2:00 pm I restarted Zabbix Server. It was still very sluggish, and the queue had over 4000 items (all types - agentd, snmp, simple checks), that's more than 50% of all my items. Then suddenly the alerts started - and haven't stopped. I disabled the offending Trigger, and even disabled *all* alerts, but to no avail!
Interestingly, all the alerts are dated from 8 days ago.
Last night I turned off my phone because the alerts kept coming. This morning my email has over 5000 new mails.
Today, I shut down Zabbix. The alerts stopped (after a while).
Tomorrow, what to do? I know that as soon as I restart Zabbix the alerts will restart too. Is there somewhere I can remove that queue of alerts/mail.
Alternatively, could I use mysql to remove all data since an hour or so before the crash? Or maybe I need to DROP the database and start fresh (not a good idea)
Open to suggestions,
MrKen
I dumped the database. Re-imported the database. Then ran mysqlcheck to check, repair, and optimize the tables.
Yesterday at 2:00 pm I restarted Zabbix Server. It was still very sluggish, and the queue had over 4000 items (all types - agentd, snmp, simple checks), that's more than 50% of all my items. Then suddenly the alerts started - and haven't stopped. I disabled the offending Trigger, and even disabled *all* alerts, but to no avail!
Interestingly, all the alerts are dated from 8 days ago.
Last night I turned off my phone because the alerts kept coming. This morning my email has over 5000 new mails.
Today, I shut down Zabbix. The alerts stopped (after a while).
Tomorrow, what to do? I know that as soon as I restart Zabbix the alerts will restart too. Is there somewhere I can remove that queue of alerts/mail.
Alternatively, could I use mysql to remove all data since an hour or so before the crash? Or maybe I need to DROP the database and start fresh (not a good idea)
Open to suggestions,
MrKen

Comment