Space left on each website

Discussion in 'General' started by bochenn, Oct 27, 2009.

  1. bochenn

    bochenn New Member

    Where can i look at how much space a particular website is currently using?
    My clients are asking for that.

    Thanks
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    You can do this with the command:

    repquota -avug

    on the shell.
     
  3. bochenn

    bochenn New Member

    the client cant' access that information from inside the ispconfig panel????
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    No. Thats not possible yet.
     
  5. bochenn

    bochenn New Member

    i would like to code a plugin to help me with that. is that possible? any documentation on how to develop plugins?

    thanks
     
  6. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    ISPConfig has plugins only in the daemon part that runs on the servers and not in the interface. But you can add new functions to the interface too of course, they are just not plugins.

    Implementing this is not that easy as ispconfig is a multiserver controlpanel, so you can not assume that the interface is on the same server then the websites. This means that the best place to add the code that does the actual monitoring is in the server/mods-available/monitor_core_module.inc.php file. This code has to store the size of the websites in the mysql (master) database like the other monitoring data. Then you will have to add some code in the interface/web/sites/web_domain_edit.php file to display the quota or you add it to a separate file like it is done for the mail traffic.
     

Share This Page