The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'E-mail Discussions' started by jayh38, Jul 29, 2008.

  1. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    This would be in 'Tweak settings'
     
  2. aww

    aww Well-Known Member

    Joined:
    Feb 10, 2005
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    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.
     
  4. wizzy420

    wizzy420 Well-Known Member

    Joined:
    Nov 13, 2007
    Messages:
    125
    Likes Received:
    2
    Trophy Points:
    18
    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. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,384
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    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.
     
    #5 sparek-3, Oct 11, 2008
    Last edited: Oct 11, 2008
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    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. wizzy420

    wizzy420 Well-Known Member

    Joined:
    Nov 13, 2007
    Messages:
    125
    Likes Received:
    2
    Trophy Points:
    18
    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. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    I submitted a feature request for such a change.
     
  9. MikeDVB

    MikeDVB Well-Known Member
    PartnerNOC

    Joined:
    Jun 4, 2008
    Messages:
    212
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Indiana, USA
    It would still be really nice to have these thresholds customizable in the tweak settings.
     
  10. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page