Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++cocoaobjective-cc#誰得gamephpbathyscaphelinuxrubyqtcomegat翻訳pythontwitterwindowsbtronvb.nettestframeworkgui計画中(planning stage)directxpreviewerpukiwikidommruby

Recent Chamber Activity

2014-10-09

Recent Wiki Changes

No changes on this wiki.

Wiki Guide

Side Bar

dsck

  • R/O
  • R/O (HTTP)
  • R/W (SSH)
  • R/W (HTTPS)
Fork

Simple disk space checker

Release Files

No download files.

Recent Commits

Rev.TimeAuthorMessage RSS
f7b2f7432014-10-09 23:50:26Tatsuki SugiuraAdd ignore.
68e397a72014-10-09 23:49:36Tatsuki SugiuraChange for executable.
ec7fd3042014-10-09 23:49:00Tatsuki SugiuraAllow to exec ruby gems execute wrapper.
89b579e52014-10-09 23:44:45Tatsuki SugiuraWhitespace cleanup.
adef04b82014-10-09 22:51:36Tatsuki SugiuraFix PATH on debian.
ec8c34482014-10-08 19:02:09Tatsuki SugiuraFix config parse and unit suffix.
3da88cba2014-10-08 19:00:20Tatsuki SugiuraFix
44b8e8612014-10-08 18:42:03Tatsuki SugiuraUpdate readme.
040a34a32014-10-08 18:13:37Tatsuki SugiuraRemove path placeholder from mail script.
05d882722014-10-08 17:54:01Tatsuki SugiuraUpdate debian version.

dsck

What's this?

Simple disk space checker

System requirement

  • ruby (1.8+)

  • can execute "df -k"

Install

gem install dsck

Support scripts

  • dsck2mail - sample shell wrapper script for crontab.

Usage

See "rd2 dsck" or "dsck -h" for details.

dsck [-Vhv] [-c config | global_threshold | /mount/point threshold]...

Options

-V, --version

Show version

-h, --help

Show this message

-v, --verbose

Verbose output. Multiple -v to increase verbosity

-q, --quiet

Quiet output. Multiple -q to decrease verbosity

-s, --summary

Show summary report

-r, --report

Show detail report

-e, --errors-only

Suppress "-r" and "-s" when nothing to alert

-c conf, --config=conf

Specify config file (arguments prevail over config)

If both of "-s" or "-r" are not specified, fallback to "-se".

Threshold Format

If argument is matched regex "/[0-9]+?/" or "nocheck", it's considerd as threshold.

Suffix character was consider as B=byte, K=KiloByte, M=Megabyte, G=GigaByte, T=TeraByte, P=PetaByte and %=Percent.

When string has no suffix character, longer than 3 will be treated as KiloByte, if not as percent.

This script alert when use% is over threshold of percentage or filesystem available size is under threshold of Byte and blocks.

ConfigFile Format

Same as command line arguments.

Especially, after "#" until end-of-line is considerd as comment.

Example

dsck -serv "95%" / 50M /tmp 5 /var/spool/squid nocheck

This means

  • Verbose output (+1)

  • Show summary and detail when error happened

  • Global threshold is 95%, "/" is 50MByte, "/tmp" is 5%

  • "/var/spool/squid" will not be checked

Latest updated Tickets

No tickets

About Chamber Wiki

Welcome to OSDN Wiki system. Here is your chamber Wiki space.

Check Wiki Guide (English) to refer syntax and functions.