Manually send an email again to who over disk quota
Hi All,
I'm an admin of couple of VPSs.
Some clients want to increase their disk quota to delete some emails for reducing disk quota when they are over using it.
But when I check their disk quota after few days later. nothing changed.
So I would like to remind them using disk over quota email template.
Is there any script to send disk over quota email manually?
Best Regards,
Chris
-
Hello, You have to enable notification in WHM using following steps so that you will get email. Login to WHM >> Server Configuration >> Tweak Settings >> Notification 1) System disk space usage warnings 2)Account system disk usage "warn" percentage 0 -
Hello, You have to enable notification in WHM using following steps so that you will get email. Login to WHM >> Server Configuration >> Tweak Settings >> Notification 1) System disk space usage warnings 2)Account system disk usage "warn" percentage
Hi SysSachin, Thanks for the reply, I did it already. It works well. But I'd like to send an email notification manually as well. Best Regards, Chris0 -
But I'd like to send an email notification manually as well.
Hello, Yes, you can manually generate the notifications with the following command:/usr/local/cpanel/scripts/quotacheck
Notification data is stored in the following directory: /var/cpanel/notifications/ Thank you.0 -
Hello, Yes, you can manually generate the notifications with the following command:
/usr/local/cpanel/scripts/quotacheck
Notification data is stored in the following directory: /var/cpanel/notifications/ Thank you.
Hi Michael, Thanks for your reply, I did that command and the result is a bit strange. also the email isn't sent.[ ~]# /usr/local/cpanel/scripts/quotacheck [quotacheck] Setting I/O priority to reduce system load: none: prio 0
What's the meaning? Is there any options should I use for this command? Best Regards, Chris0 -
When I ran with below options, I was still facing similar error result. :( [ ~]# /usr/local/cpanel/scripts/quotacheck -avugm [quotacheck] Setting I/O priority to reduce system load: none: prio 40 -
Hello, Are you sure an account meets the notification criteria? For instance, I set one account to reach 80% of it's quota, browsed to the "Notifications" tab in "WHM >> Tweak Settings", and set the following option to "80": "Account system disk usage "warn" percentage" I then ran the "/usr/local/cpanel/scripts/quotacheck" command and noticed the new entry in /var/log/exim_mainlog and in the "/var/cpanel/quotawarned" file, showing the warning notification was sent. Thank you. 0 -
Hi Michael, Thank you for the reply. Hello, Are you sure an account meets the notification criteria? For instance, I set one account to reach 80% of it's quota, browsed to the "Notifications" tab in "WHM >> Tweak Settings", and set the following option to "80": "Account system disk usage "warn" percentage" I then ran the "/usr/local/cpanel/scripts/quotacheck" command and noticed the new entry in /var/log/exim_mainlog and in the "/var/cpanel/quotawarned" file, showing the warning notification was sent. Thank you.
Yes, I'm pretty sure about the account meets the notification criteria. Automatical notifications of each criteria such as warning, critical and so on are find, well sent . The problem is when I run the command/usr/local/cpanel/scripts/quotacheck
. Nothing's happened when I check the exim_maillog0 -
Hi Michael, I resolved it. I found if there is no "/var/cpanel/quotawarned" file then quotacheck command is working. So I delete that file and then "/usr/local/cpanel/scripts/quotacheck" command send notification email again. I'm not sure it is a normal behaviour of the quotacheck command's working like that. Anyway thank you for your help. Best Regards, Chris 0 -
I'm happy to see the notifications are now working well. Thank you for updating us with the outcome. 0 -
I found if there is no "/var/cpanel/quotawarned" file then quotacheck command is working. So I delete that file and then "/usr/local/cpanel/scripts/quotacheck" command send notification email again. I'm not sure it is a normal behaviour of the quotacheck command's working like that.
This is normal if you delete quotawarned, but here's how it works (cPanel v11.60.0.26). Running quotacheck will: Email new "over quota" users not in the current quotawarned, and add those users to quotawarned. Email any user in quotawarned that has jumped up or down a level (80%, 90% or 98%) and change those user statuses in quotawarned (warn, critical, full). Remove from quotawarned any users that have gone "under quota". Users who haven't changed levels will remain in quotawarned and not be emailed as you demonstrated. So if you want to nag only one particular user who is in quotawarned, then edit that user's line out of quotawarned and manually run quotacheck again!0
Please sign in to leave a comment.
Comments
10 comments