I had to search, but I had written this Perl script for automatic notification if the filesystem was greater than some arbirtary percentage:
Code:
#!/usr/bin/perl
# auswipe, 5 Apr 2002
# Tested under OpenBSD 2.9
# auswipe sez : "No guarantees!"
$upperLimit = 80; # Upper Limit in % for a File System
$mailTarget = "joe\@blow.com"; # Target for the automatic e-mail message
open(STATS, "df -h\|grep '%'|") || die "$!";
my @fileStats = ;
foreach $entryLine (@fileStats) {
chomp($entryLine);
$entryLine =~ s/\s / /g;
my @fsStats = split(/ /, $entryLine);
$fsStats[4] =~ s/%//g;
if ($fsStats[4] >= $upperLimit) {
open(MAIL, "|mail -s \"FileSystem $fsStats[0] Getting Full!\" $mailTarget ") || die "Can't open m
ail!";
select(MAIL);
print << "EOF";
The FileSystem $fsStats[0] is getting full.
Currently, the file system is ${fsStats[4]}% full. The upper
limit has been placed at ${upperLimit}%.
Please attend to this matter.
-auswipe
This message has been created automatically. Please do not respond to this message.
EOF
close(MAIL);
};
};
close(STATS);
More Information:
- modules - A list of kernel modules loaded by the system; mounts - Shows mounted filesystems
- Linux has a wealth of filesystems to choose from, but we are facing a number of challenges with scaling to the large storage subsystems that are
- Libferris can mount both XML files and db4 files as filesystems
- Crypto filesystems keep your data safe – even if someone steals your computer
- The Filesystems API permits module authors to access files in a uniform manner: e
- A column showing the type of each of these filesystems can be added to the filesystem table produced by the above command by using the -
- If everything was successful, you should see a new line in a list of filesystems: localhost:/
- com Interested in becoming an affiliate? Click Here Inquire About filesystems
- Symmetric filesystems - A symmetric filesystem is one in which the clients also run the metadata manager code; that is, all nodes understand the disk structures
- Unlike other filesystems, Unionfs does not mount on top of a device; it mounts on top of directories
Bookmarks