Difference between revisions of "Plugin:FileCount"

From collectd Wiki
Jump to: navigation, search
(Created initial page.)
 
m (Added link to CGI::Session)
Line 5: Line 5:
 
In addition to the number of files, the plugin also collects the total size of all files.
 
In addition to the number of files, the plugin also collects the total size of all files.
  
In come cases collecting all files in a directory is not desired. For instance, the session files of the CGI::Session Perl module reside in <em>/tmp</em>. But counting all files in <em>/tmp</em> doesn't tell you anything about the number of sessions. For this reason the plugin also allows you to specify which files to count. Files can be selected by:
+
In come cases collecting all files in a directory is not desired. For instance, the session files of the [http://search.cpan.org/~markstos/CGI-Session/lib/CGI/Session.pm CGI::Session] Perl module reside in <em>/tmp</em>. But counting all files in <em>/tmp</em> doesn't tell you anything about the number of sessions. For this reason the plugin also allows you to specify which files to count. Files can be selected by:
  
 
* Name (shell wildcards)
 
* Name (shell wildcards)

Revision as of 17:34, 15 February 2009

Description

The filecount plugin does something very simple: Count the number of files in a directory and all its subdirectories. This can be used for a variety of statistics, for example the queue length of an MTA, the number of PHP sessions of a web server or simply the number of files in your home directory.

In addition to the number of files, the plugin also collects the total size of all files.

In come cases collecting all files in a directory is not desired. For instance, the session files of the CGI::Session Perl module reside in /tmp. But counting all files in /tmp doesn't tell you anything about the number of sessions. For this reason the plugin also allows you to specify which files to count. Files can be selected by:

  • Name (shell wildcards)
  • Size
  • Modification time

Dependencies

  • None