Issue: Actions does not even log to file

15 views
Skip to first unread message

Patryk Kot

unread,
Jan 22, 2025, 8:27:51 AMJan 22
to Glances Users
Hi,
I have an issue that with configuration:

[load]

disable=False

# Define LOAD thresholds

# Value * number of cores

# Default values if not defined: 0.7/1.0/5.0 per number of cores

# Source: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages

#         http://www.linuxjournal.com/article/9001

careful=0.7

warning=1.0

critical=0.10

critical_action=/bin/bash -c "echo 'Triggered critical action for LOAD!' >> ~/glances_action.log"

log=True


I can't force Glance to do the action. I was testing does it work for root, for me and with just:


echo 'Triggered critical action for LOAD!' >> ~/glances_action.log


Checked access to the config file and this log file for root and my user and still nothing.

I really do not have any idea and there is nothing in the documentation about problems with actions.


Does any one have this weird issue? It does not matter is it running by systemd or just from console.


Best regards.



Reply all
Reply to author
Forward
0 new messages