From fb17066692dc4f2805baa2699ae0222db03dc9be Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 9 Nov 2025 13:05:07 +0100 Subject: [PATCH] Update docs --- conf/glances.conf | 6 +++--- docker-compose/glances.conf | 25 ++++++++++++++++--------- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/conf/glances.conf b/conf/glances.conf index 4076bdd4..50529875 100644 --- a/conf/glances.conf +++ b/conf/glances.conf @@ -123,9 +123,9 @@ total_critical=85 total_log=True # # Default values if not defined: 50/70/90 (except for iowait) -user_careful=5 -user_warning=7 -user_critical=9 +user_careful=50 +user_warning=70 +user_critical=90 user_log=False #user_critical_action=echo "{{time}} User CPU {{user}} higher than {{critical}}" > /tmp/cpu.alert # diff --git a/docker-compose/glances.conf b/docker-compose/glances.conf index e11f1eae..f6b032ab 100755 --- a/docker-compose/glances.conf +++ b/docker-compose/glances.conf @@ -127,7 +127,7 @@ user_careful=50 user_warning=70 user_critical=90 user_log=False -#user_critical_action=echo {{user}} {{value}} {{max}} > /tmp/cpu.alert +#user_critical_action=echo "{{time}} User CPU {{user}} higher than {{critical}}" > /tmp/cpu.alert # system_careful=50 system_warning=70 @@ -186,9 +186,9 @@ disable=False # Define RAM thresholds in % # Default values if not defined: 50/70/90 careful=50 -#careful_action_repeat=echo {{percent}} >> /tmp/memory.alert warning=70 critical=90 +#critical_action_repeat=echo "{{time}} {{percent}} higher than {{critical}}"" >> /tmp/memory.alert [memswap] disable=False @@ -197,6 +197,7 @@ disable=False careful=50 warning=70 critical=90 +#warning_action=echo "{{time}} {{percent}} higher than {{warning}}"" > /tmp/memory.alert [load] disable=False @@ -243,8 +244,9 @@ hide_zero=False #wlan0_tx_warning=900000 #wlan0_tx_critical=1000000 #wlan0_tx_log=True +#wlan0_rx_critical_action=echo "{{time}} {{interface_name}} RX {{bytes_recv_rate_per_sec}}Bps" > /tmp/network.alert # Alias for network interface name -#alias=wlp2s0:WIFI +#alias=wlp0s20f3:WIFI [ip] # Disable display of private IP address @@ -337,11 +339,15 @@ hide=/boot.*,.*/snap.* #show=/,/srv # Define filesystem space thresholds in % # Default values if not defined: 50/70/90 -# It is also possible to define per mount point value -# Example: /_careful=40 careful=50 warning=70 critical=90 +# It is also possible to define per mount point value +# Example: /_careful=40 +#/_careful=1 +#/_warning=5 +#/_critical=10 +#/_critical_action=echo "{{time}} {{mnt_point}} filesystem space {{percent}}% higher than {{critical}}%" > /tmp/fs.alert # Allow additional file system types (comma-separated FS type) #allow=shm # Alias for root file system @@ -412,10 +418,11 @@ hide=unknown.* # Sensors core thresholds (in Celsius...) # By default values are grabbed from the system # Overwrite thresholds for a specific sensor -#temperature_core_Ambient_careful=45 -#temperature_core_Ambient_warning=65 -#temperature_core_Ambient_critical=80 -#temperature_core_Ambient_log=False +# temperature_core_Ambient_careful=40 +# temperature_core_Ambient_warning=60 +# temperature_core_Ambient_critical=85 +# temperature_core_Ambient_log=True +# temperature_core_Ambient_critical_action=echo "{{time}} {{label}} temperature {{value}}{{unit}} higher than {{critical}}{{unit}}" > /tmp/temperature.alert # Overwrite thresholds for a specific type of sensor #temperature_core_careful=45 #temperature_core_warning=65