Perl: Disk Space
This is a perl script written to check the the disk space of a certain partion/directory.
This was written for HP-UX and has not been tested on Linux. Modify for your needs.
###########################
Description:
Detect if the $dir is over $percent full of data and
send an email if so.
Change $email to your email
Change $message to your message (below)
Usage: diskspace.pl [directory] [percent]
|