Skip to content

Script to check partitions in ubuntu with bash and swaks

Notifications You must be signed in to change notification settings

jonalxh/Partition-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

partition_reporter.sh

Tested in Ubuntu 16.04

This script check the partition(s) that you specify, look for the local IP address, VPN address,hostname, and will send an email to the specified email address if the partitions are up or equal to the desired occupation.

It uses swaks for sending emails: sudo apt-get install swaks

To execute the script be sure the file has execution permissions, if not: sudo chmod +x partition_reporter.sh

Then: ./partition_reporter.sh

check.py

*Tested in ubuntu 16.04 and Deepin 15.5

This script uses the default O.S python modules to analize the local disk usage and send and email if defined percentage is exceeded

To put it to work just type in a pc with Internet access: sudo python check.py

If there are partitions with 70% usage or more, the script will send an email to the defined email addresses

About

Script to check partitions in ubuntu with bash and swaks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published