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.

Howto Disable Hard Drive Space Warning?

Discussion in 'General Discussion' started by fluidhosts, Aug 13, 2005.

  1. fluidhosts

    fluidhosts Member

    Joined:
    Jul 12, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    ocala, Florida
    Hey Guys,

    How do i disable the space warning emails and txt messages. I have a backup drive on every server that my clients files get backed up everynight. I get over 400 emails a night. saying that hard drive space is low. I want to shut that off. Any ideas?
     
  2. fluidhosts

    fluidhosts Member

    Joined:
    Jul 12, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    ocala, Florida

    NEver Mind Found it

    Hello

    another way to fix the problem is the following (*** how to customize limits ***)

    #pico /usr/sbin/chkservd

    using CTRL+w search this "if ($per > 90) {"

    you will find this

    Code:

    if ($per > 90) { $diskbody = $diskbody . "Drive Critical: $dsk ($drv) is ${per}% full\n\n"; $disksubject = "Drive Space Critical on $hostname\n"; } elsif ($per > 80) {




    90 (%) should be for critical warnings
    80 should be for standard warnings

    If you are receiving 1 millions email disk warning like me ,
    and you cannot freeup space , change 90 with
    your current max limit + 5 (i.e)
    and change 80 with your current max limit + 2 (i.e)

    Now save the file and close pico .
    Execute
    #service cpanel restart

    It should work , also if these values should be changed everytime you
    update cpanel .
     
  3. poppyq

    poppyq Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Austin, TX
    This didn't work for me. After changing /usr/sbin/chkservd I did a service cpanel restart and a service chkservd restart and I'm still getting these at least once every eight minutes, sometimes more often. From 1am this morning until about 12pm I had over 140 emails because of this issue.
     
  4. dolphyn

    dolphyn Well-Known Member

    Joined:
    Nov 27, 2001
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page