How to delete/remove all current alerts

spacecabbie

Explorer
Joined
Aug 20, 2017
Messages
99
How and where are these stored there not in /var/log/ I usspect in the database it self but where exactly.

In short how do i delete these aka just empty the log/db file
 

ObiTobi

Patron
Joined
Jul 12, 2013
Messages
316
I'm searching for this long time.

Generally Alerts are stored in /data/freenas-v1.db.

Code:
sqlite3 /data/freenas-v1.db
SQLite version 3.35.5 2021-04-19 18:32:05
Enter ".help" for usage hints.
sqlite> select * from system_alert;


So you see all Alerts. with
Code:
sqlite3 /data/freenas-v1.db
SQLite version 3.35.5 2021-04-19 18:32:05
Enter ".help" for usage hints.
sqlite> delete from system_alert;


you can remove all alerts, but ... the problem ist - this is not only the place they are stored :(, so some time later they are all back.
 

spacecabbie

Explorer
Joined
Aug 20, 2017
Messages
99
I'm searching for this long time.

Generally Alerts are stored in /data/freenas-v1.db.

Code:
sqlite3 /data/freenas-v1.db
SQLite version 3.35.5 2021-04-19 18:32:05
Enter ".help" for usage hints.
sqlite> select * from system_alert;
Perfect exactly what i was after!
So you see all Alerts. with
Code:
sqlite3 /data/freenas-v1.db
SQLite version 3.35.5 2021-04-19 18:32:05
Enter ".help" for usage hints.
sqlite> delete from system_alert;[/CODE
you can remove all alerts, but ... the problem ist - this is not only the place they are stored :(, so some time later they are all back.
Code:
Yea its a weird design.
 
Top