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.

Chkservd on the fritz?

Discussion in 'General Discussion' started by DigiCrime, Aug 2, 2004.

  1. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16
    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 :eek: 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? :confused: :confused: 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 :eek:
     
  2. thomas

    thomas Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Same problem here.
     
  3. rover

    rover Member

    Joined:
    Sep 8, 2002
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Having same problem here also
     
  4. dwayrynen

    dwayrynen Member

    Joined:
    Jun 19, 2002
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    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. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    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. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16
    ah yea thanks dan I was getting ready to update my thread for everyone else who was having this trouble. :cool:

    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 :eek:
     
  7. pirania1

    pirania1 Well-Known Member

    Joined:
    May 10, 2003
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami, FL
    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. iski4kix

    iski4kix Member
    PartnerNOC

    Joined:
    Apr 4, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    The bug report fix is not working for me any other ideas?
     
  9. mike25

    mike25 Well-Known Member

    Joined:
    Aug 29, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Raleigh NC, USA
    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?
     
Loading...

Share This Page