diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2007-11-24 11:42:06 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2007-11-24 11:42:06 +0000 |
commit | 1242723c0bdbdef39a6b9bf9c95a070e9faa79c8 (patch) | |
tree | a4f21ca17dee1e1cfcd358b33713204e7d3919e1 | |
parent | b05cdd619bce251620339bb78b53fbf8f72a260c (diff) | |
download | sitesummary-1242723c0bdbdef39a6b9bf9c95a070e9faa79c8.tar.gz sitesummary-1242723c0bdbdef39a6b9bf9c95a070e9faa79c8.tar.bz2 sitesummary-1242723c0bdbdef39a6b9bf9c95a070e9faa79c8.tar.xz |
Fine tune disk partition nagios configuration.
-rw-r--r-- | debian/changelog | 2 | ||||
-rwxr-xr-x | sitesummary-nodes | 10 |
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; |