Get the most out of your Centmin Mod LEMP stack
Become a Member

Insight Guide Centmin Mod diskalert daily cronjob EMAIL notifications

Discussion in 'Centmin Mod Insights' started by eva2000, Feb 22, 2018.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    2:36 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Centmin Mod initial installs also set up a daily cronjob script at /etc/cron.daily/diskalert. To monitor your disk usage capacity and be notified when you're running out of disk space, you would want to properly setup notification alerts.


    By default the email notification isn't linked to any email. You can link it by editing the /etc/cron.daily/diskalert script's EMAIL field. I suggest you sign up for pushover.net for push alert email address and download to your mobile the pushover app for alerts via push notification rather than email as emails may not be that reliable.
    Code (Text):
    # Set admin email so that you can get email.
    EMAIL=''
    

    Default threshold for alerts is at 80% full which you can change.
    Code (Text):
    # set alert level 90% is default
    DISKSPACE_ALERTPERCENTAGE='80'
    
     
Thread Status:
Not open for further replies.