System related devices

class nicos.generic.system.FreeSpace

Bases: Readable

This is a readable device that returns the free space on a filesystem.

It is useful to record this in the cache, for example to enable warnings about low free space before data files cannot be saved anymore.

The device status is OK until free space is below the value set by the minfree parameter.

Parameters

minfree (float, settable at runtime)

Minimum free space for “ok” status. Default value: 5. Unit: GiB.

path (None or str)

The path to the filesystem mount point (or None to check the experiment data directory. Default value: None.

Parameters inherited from the base classes: description, fmtstr, loglevel, lowlevel, maxage, pollinterval, unit

Previous topic

Devices communicating via cache

Next topic

Virtual devices for testing