diff --git a/NEWS b/NEWS index 2833148a..13f86711 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ Version 2.6 Enhancements and new features: * New folders' monitoring plugins (issue #721) + * Add hide configuration key for FS Plugin (issue #736) * Add process summary min/max stats (issue #703) * Add timestamp to the CSV export module (issue #708) * Add a shortcut 'E' to delete process filter (issue #699) diff --git a/conf/glances.conf b/conf/glances.conf index 6ced6586..16bd9a22 100644 --- a/conf/glances.conf +++ b/conf/glances.conf @@ -82,7 +82,7 @@ critical=90 #wlan0_tx_critical=1000000 #wlan0_tx_log=True -#[diskio] +[diskio] # Define the list of hidden disks (comma separeted) #hide=sda2,sda5 # Alias for sda1 @@ -98,6 +98,8 @@ warning=70 critical=90 # Allow additionnals files types (comma-separated FS type) #allow=zfs +# Define the list of hidden file system (comma separeted) +#hide=/boot/efi [folders] # Define a folder list to monitor @@ -147,7 +149,7 @@ mem_careful=50 mem_warning=70 mem_critical=90 -#[monitor] +[monitor] # Define the list of processes to monitor # *** This section is optional *** # The list is composed of items (list_#nb <= 10) diff --git a/glances/plugins/glances_fs.py b/glances/plugins/glances_fs.py index fbd53778..2a5c4b88 100644 --- a/glances/plugins/glances_fs.py +++ b/glances/plugins/glances_fs.py @@ -115,6 +115,9 @@ class Plugin(GlancesPlugin): # Loop over fs for fs in fs_stat: + # Do not display hidden file system + if self.is_hide(fs.mountpoint): + continue # Grab the disk usage try: fs_usage = psutil.disk_usage(fs.mountpoint)