Results 1 to 5 of 5

Thread: Cron job to sent email alerts on disk space usage

  1. #1
    Join Date
    Jun 2019
    Posts
    3

    Question Cron job to sent email alerts on disk space usage

    Hi,

    Is it possible to create a cronjob that sends an email alert when a user (in a reseller account) has reached 70% of their allocated disk space?

    I have been looking at the API info but I have no clue what I need and how to use it.


    Reason for asking is that DA does a nightly check on the allocated space and sends a warning where there is only 5% (?) space left. For smaller packages that's a very small margin that can fill up pretty quickly between two nightly checks. So according to the nightly check there is still enough space and during the day someone sends/receives to 5 colleagues with a 25mb video and poof, website suspended and mailbox full. And you don't get a warning until the next nightly check.

    Thanks
    JP

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,742

  3. #3
    Join Date
    Jun 2019
    Posts
    3
    Thank you zEitEr,

    I have a reseller account and no access to directadmin.conf to change user_warning_thresh_disk=95
    Hence the question if I can do this with the API and a cronjob.

    Is it possible to use your plugin you mention on the other page on a reseller level?

    Thanks
    JP

  4. #4
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,742
    Plugins can be installed only on admin level. As a reseller you can not install any plugin into Directadmin.

    Yes, you can use API and crontab for this. I don't have any ready solution for this case, you can check what DirectAdmin has already here: https://www.directadmin.com/search_v....php?query=API

    If you need a custom solution, please feel free to open a ticket on a site from my signature, and we could discuss the project and its price.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  5. #5
    Join Date
    Jun 2019
    Posts
    3
    Ok, email sent.

    Thanks.
    JP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •