diff options
Diffstat (limited to 'sitesummary-nodes')
-rwxr-xr-x | sitesummary-nodes | 10 |
1 files changed, 10 insertions, 0 deletions
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; |