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.

System Disk Warnings

Discussion in 'General Discussion' started by sozotech, May 6, 2015.

  1. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    About a month or so ago we stopped receiving system disk warnings from all of our cPanel servers. The email setup is correct and I am receiving other emails from cPanel just not the disk warnings.

    Under tweak settings "System disk space usage warnings" is turned on. I am guessing an update or something changed but I can't seem to find what.

    Any ideas?

    Eric
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you notice any entries for the notifications in /var/log/exim_mainlog? Have you tried enabling and disabling the notification configuration in "Tweak Settings"?

    Thank you.
     
  3. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Nothing to note in the exim logs. As I mentioned I am getting other emails from like account adds, deletes, etc so I am confident that is working.

    I will try disabling and re-enabling this setting and see what it does. I was just surprised to see the /home partition on a couple servers over 85% and I've not seen any warnings.

    Once I make this change, how long should it take to get a notifcation? I assume it runs a few times a day from cron?

    Eric
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    What do you have configured for "Account system disk usage “warn” percentage" and "Account system disk usage “critical” percentage" under the "Notifications" tab in "Tweak Settings"?

    Thank you.
     
  5. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    They are both set to the defaults which are 82.55% and 92.55%.

    Eric
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can manually run the following command to run the quota check script to see if it's working as expected (assuming your disk space usage is above the threshold):

    Code:
    /usr/local/cpanel/scripts/quotacheck
    Thank you.
     
  7. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Doesn't that just check the account quotas? To be clear the emails I am missing are for the disk partitions not individual account quota emails although those may not be working either.

    Eric
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    The email generated for the system disk space notifications comes from Chkservd. Try running the following command:

    Code:
    /scripts/restartsrv_tailwatchd && tail -f /var/log/chkservd.log
    It will run through and output the results of "Disk Check".

    Thank you.
     
  9. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Perhaps this is the issue. The log file shows 81.06% usage.

    Code:
    tail /var/log/chkservd.log
    [2015-05-07 13:11:40 -0400] Disk check .... /dev/mapper/vg_serverx-lv_root (/) [81.06%] ... /dev/mapper/vg_serverx-lv_tmp (/tmp) [2.32%] ... /dev/vda1 (/boot) [15.81%] ... {status:ok} ... Done
    
    However a df on the filesystem shows something different.

    Code:
     df -h .
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/vg_serverx-lv_root
                          480G  389G   67G  86% /
    
    Why would there be a 5% difference between the two?

    Eric
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Is it possible there are processes running with open files that have since been deleted? A system reboot is often a quick way to ensure any processes running with deleted files are closed.

    Thank you.
     
Loading...

Share This Page