Disk stats in ispconfig control panel doesn't match

Discussion in 'General' started by SupuS, Oct 8, 2007.

  1. SupuS

    SupuS HowtoForge Supporter

    Disk stats in ispconfig control panel doesn't match [SOLVED]

    Hi Falko and Till

    In ispconfig build in stats is lower number than du command returns .. for example:

    Web 101:
    Disk space: 400 MB
    Used: 178.96M

    /web 52M
    /user 840K
    /log 2.4M
    /cgi-bin 4.0K
    /ssl 4.0K
    /phptmp 4.0K
    /backup 74M
    /synchro 48M
    DB::MySQL 978.8k


    # du -sh /var/www/web101
    297M /var/www/web101

    # du -sh /var/www/web101/*
    0 /var/www/web101/Maildir
    74M /var/www/web101/backup
    4.0K /var/www/web101/cgi-bin
    2.4M /var/www/web101/log
    4.0K /var/www/web101/phptmp
    4.0K /var/www/web101/ssl
    48M /var/www/web101/synchro
    120M /var/www/web101/user
    52M /var/www/web101/web

    The user directory contains a lot of emails and ispconfig stats doesn't reflect to this ..
    Last edited: Oct 8, 2007
  2. till

    till Super Moderator

  3. SupuS

    SupuS HowtoForge Supporter

    Thanx for help till it works .. for others here is little howto :)

    On my ubuntu box I used visudo for adding this line to sudoers:

    admispconfig ALL=(ALL) NOPASSWD: /usr/bin/du *

    and set this line like:

    $go_info["server"]["sudo_du_enabled"] = true;

    in file /home/admispconfig/ispconfig/lib/config.inc.php

    and stats are corect :)
  4. mccharlet

    mccharlet HowtoForge Supporter


    I'm modified
    sudoers files

    how to update the statisticshow to update the statistics
  5. Tripple

    Tripple New Member

    # /etc/init.d/ispconfig_server restart

Share This Page