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

[WEBUI] Clear old alert messages in the WebUI #3042

Closed
FS1961 opened this issue Dec 8, 2024 Discussed in #3041 · 7 comments
Closed

[WEBUI] Clear old alert messages in the WebUI #3042

FS1961 opened this issue Dec 8, 2024 Discussed in #3041 · 7 comments
Assignees
Milestone

Comments

@FS1961
Copy link

FS1961 commented Dec 8, 2024

Discussed in #3041

Originally posted by FS1961 December 7, 2024
I love this tool. It's been helpful identifying issues for me. However, when I reboot my system, Glances seems to find "old" alerts. How do I clear them? I'm just webbing into the port 61208.

You can see the alerts are from Nov 7th. I am pressing 'h' for help, 'x' and 'w' appears to have no effect.

here is my docker config:

version: "3.9" services: glances: container_name: Glances image: nicolargo/glances:latest healthcheck: test: curl -f http://localhost:61208/ || exit 1 mem_limit: 4g cpu_shares: 768 security_opt: - no-new-privileges:true pid: host privileged: true network_mode: host restart: on-failure:5 ports: - 61208:61208 volumes: - /var/run/docker.sock:/var/run/docker.sock:ro environment: GLANCES_OPT: -w TZ: Europe/Berlin

Screenshot 2024-12-07 at 12 27 01 PM
Copy link

github-actions bot commented Dec 8, 2024

This issue is available for anyone to work on. Make sure to reference this issue in your pull request. ✨ Thank you for your contribution ! ✨

Copy link

github-actions bot commented Dec 8, 2024

This issue is available for anyone to work on. Make sure to reference this issue in your pull request. ✨ Thank you for your contribution ! ✨

@nicolargo
Copy link
Owner

Hi @FS1961

unfortunatly it is not possible for the moment in the WebUI.

The only workaround is to restart your Glances container.

@FS1961
Copy link
Author

FS1961 commented Dec 9, 2024

Thanks for the response, but this doesn't work. I restarted the container. See below.
Screenshot 2024-12-09 at 11 19 44 AM

@FS1961
Copy link
Author

FS1961 commented Dec 11, 2024

Sorry, maybe I'm confused? Is the critical warning/alert misformated and really 2024-11-12? So from today? Is this why I think they are older than they are?

Screenshot 2024-12-11 at 9 19 05 AM

@FS1961
Copy link
Author

FS1961 commented Dec 19, 2024

I think I see part of the problem. - the Warnings are misformated. It is giving the wrong month.Please see this which is after a recent restart. Should be 2024-12-11 or Dec 12th however you want to format it.

Screenshot 2024-12-19 at 12 03 57 PM

@nicolargo nicolargo changed the title Running Glances in docker container - how to clear old alert messages? [WEBUI] Clear old alert messages in the WebUI Dec 21, 2024
@nicolargo
Copy link
Owner

A new button has been added in the WebUI in order to clear the list (all the alert):

Capture.video.du.2024-12-22.19-16-48.webm

Pushed on the develop branch.

Will be release in Glances 4.3.

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

No branches or pull requests

2 participants