Tags:
admin_tool2Add my vote for this tag visualization1Add my vote for this tag create new tag
, view all tags

Disk Usage TWiki Plugin

This plugin shows you the diskusage (in kb) for the current web.

Syntax Rules

%LOGSIZES%
%LOGSIZES%

%QUOTA%
%QUOTA%

%DISKUSAGE{ web="" }%

Plugins Disk Usage

%DISKUSAGE{ web="Plugins" }%

%DISKUSAGE%
%DISKUSAGE%

DiskUsagePlugin Global Settings

  • There are no settings for this plugin
  • One line description, shown in the Text Formatting Rules topic:
    • Set SHORTDESCRIPTION = This plugin shows the disk usage for the current web
  • Whether you want debug output
    • Set DEBUG = 1

Plugin Installation Instructions

(This plugin is preinstalled, you do not need to install it.)

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip DiskUsagePlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/DiskUsagePlugin.txt Plugin topic
    lib/TWiki/Plugins/DiskUsagePlugin.pm Plugin Perl module
  • Test if the plugin is correctly installed:
    • see whether the %DISKUSAGE% directive is expanded above

Future development possibilities

It could be improved on considerably. e.g.

  • One possibility is to install it in the TWiki web and use an include like WebChanges does
    • This could be called WebDiskUsage or used on a page called WebStatus
  • It should allow specification of topic and web. Currently it works only for the current web

Plugin Info

Plugin Author: TWiki:Main.MartinCleaver
Plugin Version: 12 Apr 2004 Martin Cleaver
Change History: 12 Apr 2004 Martin Cleaver - quotas, diskspace for history, attachments and topics 
  11 Mar 2004 Martin Cleaver - initial release 
CPAN Dependencies: none
Other Dependencies: /usr/bin/du
Perl Version: 5.005
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/DiskUsagePlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/DiskUsagePluginDev

Related Topics: TWikiPreferences, TWikiPlugins, DefaultPlugin

-- TWiki:Main.MartinCleaver - 11 Mar 2004

Topic attachments
I Attachment Action Size Date Who Comment
ziptgz DiskUsagePlugin.tgz manage 3.8 K 13 Nov 2006 - 21:28 AJAlfieriCrispin applied DarrenElkerton's 26 July 2006 patches to DiskUsagePlugin.pm and rebundled allowing this to run on TWiki 4.0.x
zipzip DiskUsagePlugin.zip manage 4.5 K 14 Nov 2006 - 00:13 PeterThoeny applied DarrenElkerton's 26 July 2006 patches to DiskUsagePlugin.pm and rebundled allowing this to run on TWiki 4.0.x
Topic revision: r15 - 14 Nov 2006 - 00:14:18 - PeterThoeny
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback