Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member DigiCrime's Avatar
    Join Date
    Nov 2002
    Posts
    388

    Unhappy Chkservd on the fritz?

    Whats up with it this morning? I wake up this morning and find 400 system messages, all disk space messages "Drive Space Warning on server.someexample.com" no big deal maybe it was a fluke but whatever is wrong with that program, its only sending the drive space warning messages, duplicates, over and over, and 40+ servers, im getting roughly 12-15 of these per min I went in and restarted chkservd on ten systems to see if there was any effect but appears to be none at all. Ive looked at a handful of systems, rebooted a couple, doesn't seem to have any effect either. Checked the log to see if chkservd was failing

    Aug 2 09:06:43 earth sshd(pam_unix)[10801]: session opened for user root by (uid=0)
    Aug 2 09:07:06 earth chkservd: chkservd shutdown succeeded
    Aug 2 09:07:06 earth chkservd: chkservd startup succeeded

    Where would I go from here? All systems are using the same Cpanel Release build, Mixed operating systems from Redhat 7.x to Fedora, 30 machines have the same hardware, same drives same, nics, ram pretty much everything so I dunno

  2. #2
    Member
    Join Date
    Mar 2002
    Posts
    70

    Default

    Same problem here.

  3. #3
    Member
    Join Date
    Sep 2002
    Posts
    6

    Default

    Having same problem here also

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2002
    Posts
    22

    Default

    Quote Originally Posted by DigiCrime
    Whats up with it this morning? I wake up this morning and find 400 system messages, all disk space messages "Drive Space Warning on server.someexample.com" no big deal maybe it was a fluke but whatever is wrong with that
    cpanel pushed out an update for /usr/sbin/chkservd that broke how disk space is checked.

    Prior to the update the code that determined if a disk space check was going to go through was this:


    $dskchk++;
    if ($dskchk == 1) {
    diskcheck();
    }
    if ($dskchk == 289) {
    $dskchk = 0;
    }

    Now it is this:

    if ($dskchk % 300 == 0 || $dskchk == 0) {
    diskcheck();
    }


    Both are similar - previously disk space checks were only running every 290 * 500 seconds - or about every 40 hours or so...


    Now it's being checked every 500 seconds....

    You can either clear up the disk space (-:, or change that second snippet of code to be
    something like:


    if ($dskchk++ % 300 == 0 || $dskchk == 0) {
    $dskchk++;
    diskcheck();
    }

    You have to increment the counter in two places because I think the intent is to check disk space on start up and then every 300 iterations.

    Personally, I think the disk space monitoring should be configurable, both on time between checks, and the amount of space left before warnings are issued - the defaults don't cover everyone's needs very well and should be tunable with some predefined defaults.

    Darin

  5. #5
    cPanel Staff
    Join Date
    Mar 2004
    Posts
    704

    Default

    Hello,

    If anyone else has this problem (a couple of you had tickets already) have a look here for a temporary fix and subscribe yourself to the CC list to be notified of any changes to it.

    http://bugzilla.cpanel.net/show_bug.cgi?id=973

    Thanks

  6. #6
    Member DigiCrime's Avatar
    Join Date
    Nov 2002
    Posts
    388

    Default

    ah yea thanks dan I was getting ready to update my thread for everyone else who was having this trouble.

    Be nice if it was configurable to allow you to set an amount of used space on a specific partition/drive, we get them even when a drive is at 80% thats not very active. just used space

  7. #7
    Member pirania1's Avatar
    Join Date
    May 2003
    Location
    Miami, FL
    Posts
    137

    Angry

    I guess I had related problem.
    The only difference was TONs of emails regarding urchin and urchin scheduler failing to start, even though they were started properly.

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2004
    Posts
    6

    Default

    The bug report fix is not working for me any other ideas?

  9. #9
    Member mike25's Avatar
    Join Date
    Aug 2003
    Location
    Raleigh NC, USA
    Posts
    83

    Default

    Using the method above I have been able to disable disk checking. This will stop those annoying emails but it is also not what I would prefer to do. Instead I would like to change the % at which these emails are sent out. Does anyone know where the code is that determines this?

Similar Threads & Tags
Similar threads

  1. chkservd not monitoring clamd set at chkservd.conf
    By gflamerich in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-10-2008, 08:23 AM
  2. chkservd
    By tjmoore in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-31-2006, 11:04 AM
  3. chkservd
    By DigiCrime in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 09-12-2005, 12:23 AM
  4. Chkservd
    By tihp in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-30-2004, 11:08 PM
  5. chkservd
    By carpman in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-23-2001, 04:27 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube