Skip to main content

Manually send an email again to who over disk quota

Comments

10 comments

  • SysSachin
    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
  • ChrisDev
    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, Chris
    0
  • cPanelMichael
    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
  • ChrisDev
    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, Chris
    0
  • ChrisDev
    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 4
    0
  • cPanelMichael
    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
  • ChrisDev
    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_maillog
    0
  • ChrisDev
    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
  • cPanelMichael
    I'm happy to see the notifications are now working well. Thank you for updating us with the outcome.
    0
  • RootBoy
    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.