r1 - 12 Apr 2004 - 10:34:43 - TWikiGuestYou are here: TWiki >  TWiki Web  > DiskUsagePlugin

Disk Usage TWiki Plugin

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

Syntax Rules

%LOGSIZES%

%LOGSIZES%

%QUOTA% %QUOTA%

%DISKUSAGE% %DISKUSAGE%

%DISKUSAGE{web="Main"}% %DISKUSAGE{web="Main"}%

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 = 0

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
    data/TWiki/DiskUsagePlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/DiskUsagePlugin.pm Plugin Perl module
  • (Dakar) Visit configure in your TWiki installation, and enable the plugin in the {Plugins} section.
  • 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: 11 Mar 2004 Martin Cleaver
Change History: 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

-- TWiki:Main.MartinCleaver - 11 Mar 2004

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
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
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.DiskUsagePlugin