[PATCH] disk_space: exclude devtmpfs from output
Jan Synacek <[email protected]> Wed, 27 Apr 2016 08:48:45 +0200
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
---
scripts/services/zz-disk_space | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/services/zz-disk_space b/scripts/services/zz-disk_space
index 13abf3e..7b9df9c 100755
--- a/scripts/services/zz-disk_space
+++ b/scripts/services/zz-disk_space
@@ -147,7 +147,7 @@ sub DiskFull {
#Main
if ($OSname eq "Linux") {
- $df_options = "-h -x tmpfs -x udf -x iso9660";
+ $df_options = "-h -x tmpfs -x devtmpfs -x udf -x iso9660";
if ($local_disks_only) { $df_options .= " -l"; }
} elsif ($OSname eq "Darwin") {
$df_options = "-h";
@@ -164,7 +164,7 @@ if ($OSname eq "Linux") {
$df_options = "";
if ($local_disks_only) { $df_options .= " -P"; }
} elsif ($OSname eq "GNU/kFreeBSD") {
- $df_options = "-h -x tmpfs -x udf -x iso9660 -x devfs -x linprocfs -x sysfs -x fdescfs";
+ $df_options = "-h -x tmpfs -x devtmpfs -x udf -x iso9660 -x devfs -x linprocfs -x sysfs -x fdescfs";
if ($local_disks_only) { $df_options .= " -l"; }
} else {
$df_options = "";
--
2.7.4
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z