aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog2
-rwxr-xr-xsitesummary-nodes10
2 files changed, 11 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 073b10e..16f49df 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-sitesummary (0.0.32) unstable; urgency=low
+sitesummary (0.0.31.0.pere.1) unstable; urgency=low
* UNRELEASED
diff --git a/sitesummary-nodes b/sitesummary-nodes
index fd59d62..9329cd4 100755
--- a/sitesummary-nodes
+++ b/sitesummary-nodes
@@ -148,9 +148,19 @@ EOF
my $path = get_filepath_current($hostid, "/system/procmounts");
if ( -e $path ) {
open (F, "<", $path) || die "unable to read from $path";
+ my %checked;
while (<F>) {
chomp;
my ($dev, $partition, $fs, $opts) = split;
+ next if (exists $checked{$partition});
+ next if ($fs eq "devpts" ||
+ $fs eq "proc" ||
+ $fs eq "rootfs" ||
+ $fs eq "rpc_pipefs" ||
+ $fs eq "sysfs" ||
+ $fs eq "tmpfs");
+
+ $checked{$partition} = 1;
my $warn = 10;
my $crit = 5;
print <<EOF;