diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-01-16 09:58:21 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-01-16 09:58:21 +0000 |
commit | a453267b3bbbc0443c3c983087ba8a3174dbf960 (patch) | |
tree | 75c4687c924371db7584bc38c8078d000c47cfd3 | |
parent | 20cca9c571aaf071242cffbba0a24f414d6d43fa (diff) | |
download | sitesummary-a453267b3bbbc0443c3c983087ba8a3174dbf960.tar.gz sitesummary-a453267b3bbbc0443c3c983087ba8a3174dbf960.tar.bz2 sitesummary-a453267b3bbbc0443c3c983087ba8a3174dbf960.tar.xz |
Change disk check generator to only check a given device once to avoid
checking mount points pointing to the same device twice.
-rwxr-xr-x | sitesummary-nodes | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes index 1b958b1..181614b 100755 --- a/sitesummary-nodes +++ b/sitesummary-nodes @@ -213,7 +213,7 @@ EOF while (<F>) { chomp; my ($dev, $partition, $fs, $opts) = split; - next if (exists $checked{$partition}); + next if (exists $checked{$device}); next if ($fs eq "devpts" || $fs eq "autofs" || $fs eq "binfmt_misc" || @@ -228,7 +228,7 @@ EOF $fs eq "tmpfs" || $fs eq "usbfs"); - $checked{$partition} = 1; + $checked{$device} = 1; my $warn = 10; my $crit = 5; print_nagios_service_check($remote, $hostname, |