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.

/etc/rrdtooldisable is exists, but rrd files are still genereated

Discussion in 'General Discussion' started by sodapopinski, Jul 13, 2013.

  1. sodapopinski

    sodapopinski Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    I created an empty file /etc/rrdtooldisable, deleted all /var/cpanel/bandwidth/*.rrd files and restart cpanel service. But within few minutes alot of rrd files are generated again by the system. Is there anyway to disable the system generate .rrd files into /var/cpanel/bandwidth dir?

    Thanks alot in advance.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    I've opened case 73185 regarding this specific issue. We have prior discussions on our site about utilizing /etc/rrdtooldisable as a way to avoid creating these graphs:

    cPanel 11.25 Tech Bulletin: updated bandwidth tracking requirements | cPanel, Inc.

    There are no internal cases discussing removal of /etc/rrdtooldisable and /usr/local/cpanel/bin/chk_bwrrd_size also references it:

    Code:
    Bandwidth processing has therefore been disabled.
    
    To re-enable:
      1. Symlink /var/cpanel/bandwidth to a partition with sufficient space
      2. Remove the file /etc/rrdtooldisable
      3. Re-run /usr/local/cpanel/install/bandwidth
    EOM
    
            # Send message if space is too small.
            require Cpanel::iContact;
            Cpanel::iContact::icontact(
                app     => 'installbandwidth',
                level   => 1,
                subject => 'Unable to upgrade bandwidth files',
                message => $msg
            );
            Cpanel::FileUtils::TouchFile::touchfile('/etc/rrdtooldisable');
        }
        exit 1;
    }
    
    exit 0;
    The biggest issue with the fact /etc/rrdtooldisable isn't working would be that the tool is supposed to detect if you do not have sufficient disk space. If it isn't able to stop running graphs by detecting the existence of that file, then that could cause /var partition to go over in usage on some systems. That makes this a bug.

    Thanks!
     
Loading...

Share This Page