From 3f0b3613002771de965182aa439a401a6886c318 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Tue, 16 Feb 2021 09:46:45 -0500 Subject: [PATCH] common: Ignore /snap mountpoints when checking disk usage Signed-off-by: David Galloway --- roles/common/files/libexec/diskusage.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/files/libexec/diskusage.pl b/roles/common/files/libexec/diskusage.pl index 49200da..d4d21ab 100644 --- a/roles/common/files/libexec/diskusage.pl +++ b/roles/common/files/libexec/diskusage.pl @@ -56,7 +56,7 @@ my $crit = 0; my @parts; my $hostname = `hostname`; chomp $hostname; -@parts = `mount | grep -vi fuse`; +@parts = `mount | grep -vi fuse\|/snap`; #if ( $hostname eq 'zartan' ) { # @parts = `mount`; -- 2.39.5