nicolargo / glances

Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.
http://nicolargo.github.io/glances/
Other
25.8k stars 1.47k forks source link

Folder alert not showing #1455

Open GhaziTriki opened 5 years ago

GhaziTriki commented 5 years ago

Description

When I have the following directory configuration, the alert is not showing. Nothing is stored into the diretory too.

[folders]
folder_1_path=/opt/freeswitch/var/log/freeswitch
folder_1_careful=50
folder_1_warning=200
folder_1_critical=350
folder_1_careful_action=echo {{user}} {{value}} {{max}} > /tmp/fslog.alert
folder_1_warning_action=echo {{user}} {{value}} {{max}} > /tmp/fslog.alert
folder_1_critical_action=echo {{user}} {{value}} {{max}} > /tmp/fslog.alert

image

Versions

nicolargo commented 5 years ago

By design, only CPU, RAM, SWAP and LOAD alert are logged.

See https://glances.readthedocs.io/en/stable/aoa/index.html ==> "Only stats with colored background will be shown in the alert view."

I will check if it is possible to change this behavor by adding a key in the configuration file.

r3mi commented 3 weeks ago

Hello, I have the same trouble with filesystem alerts. [fs] limits are taken into account in web view with color change in statistics. However, no alert is displayed in events list, and no alerts in API /api/4/alert. Using docker 4.0.8-full It would be very useful to remove this limitation. Thanks for this software !