GithubHelp home page GithubHelp logo

acromedia / ansible-role-simple-disk-space-notify Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 24 KB

Install a cron job to periodically monitor disk use, and send a notification email if space exceeds the configured threshold

License: GNU General Public License v3.0

Shell 100.00%

ansible-role-simple-disk-space-notify's Introduction

ansible-role-simple-disk-space-notify

Install a cron job to periodically monitor disk use, and send a notification email if space exceeds the configured threshold

This is a trivial script for simple/legacy servers. You can use it as a backup, but you should have better monitoring in place.

See defaults/main.yml for config options.

Requirements

  • The mail command line util must be installed.
  • You must have already configured your server to be able to deliver mail to the outside world.

The acromedia.postfix is a good starting place for the above.

ansible-role-simple-disk-space-notify's People

Contributors

dale-c-anderson avatar

Watchers

 avatar  avatar  avatar

ansible-role-simple-disk-space-notify's Issues

List inodes of /boot/efi produces warning

Cron emits the following error daily on 22.04 servers:

WARN: Cannot evaluate inode table use for '/boot/efi'; Expected PERCENT_USE to be a positive integer. Got '-' instead.

Output of df shows a dash instead of a percetage, and the mount appears to use zero inodes:

$ df -PHi
Filesystem      Inodes IUsed IFree IUse% Mounted on
/dev/root         1.3M   95k  1.2M    8% /
tmpfs              57k     2   57k    1% /dev/shm
tmpfs             820k   620  819k    1% /run
tmpfs              57k     3   57k    1% /run/lock
/dev/nvme0n1p15      0     0     0     - /boot/efi
tmpfs              12k    25   12k    1% /run/user/1001
tmpfs              12k    25   12k    1% /run/user/1004

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.