This would be in 'Tweak settings'
This would be in 'Tweak settings'
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!
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
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
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.
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.
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 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