bandwith / disk quota notification emails

wtptrs

Verified User
Joined
Jul 13, 2015
Messages
74
We're trying to customize the emails users receive when (almost) exceeding the bandwith / disk quota limit for their account by using a custom template, the ones with a subject like:

User xxx has used up xxx% of their bandwidth and xxx% of their allocated disk space

- How can we manually generate these emails being sent out to test this? We've tried exceeding a users disk quota and running the Directadmin tally cron job manually but this doesn't seem to work.
- Is it possible to change the the bandwith usage / disk usage percentage threshold after which these mails are sent?
 

wtptrs

Verified User
Joined
Jul 13, 2015
Messages
74
Thanks for the response. Regarding the second issue, should setting the 'sentwarning_quota=no' for a user exceeding his disk quota and running the tally generate a new warning email? Because this doesn't seem to be the case when testing. After running the tally, the 'sentwarning_quota' value is set to 'yes', but no email is being sent out.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,243
Location
GMT +7.00
I've provided links to the official DA pages. I don't use the features for myself and don't customize them currently.

Some time earlier I wrote a custom plugin to send warnings/alerts every day with cron, and it does not rely on the variables at all. The plugin is not available in public either for free or for a fee. There is no English support in it yet. If you might have interest in it, kindly drop me a message either through the site (not forums) in my signature or in Facebook.

If you are 100% sure the variables are not working on your server kindly consider opening a ticket with Directadmin support: https://tickets.directadmin.com
 

kang28ivan

Verified User
Joined
Mar 16, 2017
Messages
33
I guess it's related to https://www.directadmin.com/features.php?id=2323 (already fixed in DA 1.56.1).
Hello,

It is user_warning_thresh_disk=95


- user_warning_thresh_disk variable for disk usage warning


Reset:

Code:
sentwarning_bandwidth=no
sentwarning_inode=no
sentwarning_quota=no
in user.conf per needs for testing purposes to let new emails to be sent.

https://www.directadmin.com/features.php?id=2063
Can this be applied to specific values?
for example, I apply if the user reaches the 10GB disk limit, the user will get a notification
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,243
Location
GMT +7.00
DirectAdmin does not support this as far as I know. You will need either use a custom solution utilizing API for this or suggest a feature request.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,243
Location
GMT +7.00
The plugin is currently abandon, it has not ever been much requested since the post. But it can be rewritten per your needs under a commercial service. Sorry don't have time to maintain it as a free solution.
 

kang28ivan

Verified User
Joined
Mar 16, 2017
Messages
33
The plugin is currently abandon, it has not ever been much requested since the post. But it can be rewritten per your needs under a commercial service. Sorry don't have time to maintain it as a free solution.
I understand that, it will definitely take time to rewrite the script.
I think it's stable and can be bought
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,243
Location
GMT +7.00
Top