Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearing errors / excluding old events from reports #83

Open
m-sundman opened this issue Jan 29, 2023 · 0 comments · Fixed by m-sundman/rasdaemon#1
Open

Clearing errors / excluding old events from reports #83

m-sundman opened this issue Jan 29, 2023 · 0 comments · Fixed by m-sundman/rasdaemon#1

Comments

@m-sundman
Copy link
Contributor

m-sundman commented Jan 29, 2023

Once there is an error event in the database it will apparently be reported every single time. It would be very useful to clear events so that they either are removed from the database or stay there but are excluded from reports like ras-mc-ctl --errors and ras-mc-ctl --summary.

A possible solution would be to include a column, "is_new", in the event database, that can be set to false to indicate that the event in question is old and should not be reported anymore (i.e., the queries used by the reports would add a ... WHERE is_new clause). Another possibility would be to have a global variable, "last_seen_id" which indicates that only events with id > last_seen_id should be reported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant