Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    This would be in 'Tweak settings'

  2. #2
    aww
    aww is offline
    Member
    Join Date
    Feb 2005
    Posts
    81
    cPanel/Enkompass Access Level

    Root Administrator

    Question daily drive space warning emails - how to raise threshold from 80% ?

    Apparently the system-wide drive space warning threshold is locked at 80% and even though that still represents gigabytes of space free, WHM/Cpanel insists on emailing daily. I'd like to raise it to 85% but where is it buried?

    What worries me about this question is I can find about two dozen similar questions here via search but no solution.

    Note this is *not* the user level warning that's available in tweak settings. Changing that changes nothing.

    Thanks for any ideas!

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    AFAIK, there's no option to change that limit, which is why there are no other answers to the question. If you'd like to be able to you need to create an enhancement request in cPanels bugzilla. OTOH, if drive space is below 20% you should be tidying up data or moving to larger drives anyway.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member
    Join Date
    Nov 2007
    Posts
    114

    Default

    Quote Originally Posted by chirpy View Post
    OTOH, if drive space is below 20% you should be tidying up data or moving to larger drives anyway.
    This just doesn't make sense. If one has four one TB drives in RAID 10, that means the /home partition could be 1700GB

    At 20% left, that means there is still 340GB free on that partition.

    So what, to avoid getting the piss bugged out of us every day we just have to put aside 400GB as always unusable ??

    Steve

  5. #5
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    One thing to note, its probably a good idea to save a copy of this file before modifying it. This way you have a known good copy should the changes you make result in errors:

    cp -a /usr/local/cpanel/libexec/chkservd /usr/local/cpanel/libexec/chkservd.good

    You can change the percentage by modifying the file:

    /usr/local/cpanel/libexec/chkservd

    Search for the string sub diskcheck should be around line 310.

    In that subroutine you will find if statements for checking disk space usage if they are above a certain number. Just change the number to reflect what you want.

    Save the file and then restart chkservd

    /scripts/restartsrv_chkservd

    One thing to note, I believe this file is reverted back after each cPanel update, so everytime you update cPanel you will have to make this change. This is why ultimately the best action is to log an enhancement request in bugzilla.
    Last edited by sparek-3; 10-11-2008 at 08:44 AM.

  6. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by sparek-3 View Post
    One thing to note, its probably a good idea to save a copy of this file before modifying it. This way you have a known good copy should the changes you make result in errors:

    cp -a /usr/local/cpanel/libexec/chkservd /usr/local/cpanel/libexec/chkservd.good

    You can change the percentage by modifying the file:

    /usr/local/cpanel/libexec/chkservd

    Search for the string sub diskcheck should be around line 310.

    In that subroutine you will find if statements for checking disk space usage if they are above a certain number. Just change the number to reflect what you want.

    Save the file and then restart chkservd

    /scripts/restartsrv_chkservd

    One thing to note, I believe this file is reverted back after each cPanel update, so everytime you update cPanel you will have to make this change. This is why ultimately the best action is to log an enhancement request in bugzilla.
    The above will no longer be valid once cPanel 11.23.7/11.24 is pushed to non-EDGE branches. chkservd was converted to a Tailwatch driver. The file to edit is /usr/local/cpanel/Cpanel/TailWatch/ChkServd.pm. The percentages are still hard coded. However if you have disk notifications disabled, the warning email will not be sent.

  7. #7
    Member
    Join Date
    Nov 2007
    Posts
    114

    Default

    Thanks sparek & cp kenneth!

    I just did some drive reallocation, but this will be handy to know. I like getting notified, it's just bad when 20% free is like 10GB

    Steve

  8. #8
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by wizzy420 View Post
    Thanks sparek & cp kenneth!

    I just did some drive reallocation, but this will be handy to know. I like getting notified, it's just bad when 20% free is like 10GB

    Steve
    I submitted a feature request for such a change.

  9. #9
    Member
    Join Date
    Jun 2008
    Location
    Indiana, USA
    Posts
    105

    Default

    Quote Originally Posted by cpanelkenneth View Post
    I submitted a feature request for such a change.
    It would still be really nice to have these thresholds customizable in the tweak settings.
    Michael Denney
    MDDHosting LLC
    http://www.mddhosting.com/

  10. #10
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: daily drive space warning emails - how to raise threshold from 80% ?

    Quote Originally Posted by MikeDVB View Post
    It would still be really nice to have these thresholds customizable in the tweak settings.
    I have created the following feature request thread so you can "subscribe" to it to monitor the progress of this feature's implementation: http://forums.cpanel.net/f145/case-1...ck-190891.html

Similar Threads & Tags
Similar threads

  1. change drive full percentage warning threshold?
    By boatdesign in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-08-2010, 11:07 PM
  2. Drive Space Warning emails
    By ANewDay in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 08-20-2007, 01:08 AM
  3. Drive Space Warning
    By ljwhite in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-29-2006, 05:42 AM
  4. Up the drive space warning threshold?
    By edstout in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 08-10-2005, 09:52 AM
  5. Drive space Warning
    By DigiCrime in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-01-2005, 02:54 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube