提交 e255b2a1 编写于 作者: N nicolargo

Add hide configuration key for FS Plugin (issue #736)

上级 f3c7db8f
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册