Check fs-ro

Overview

This plugin checks for read-only mount points, such as / mounted read-only due to file system errors, mounted CD-ROMs or ISO files, etc. It always ignores loops, ramfs and squashfs (snapd) by default.

Fact Sheet

Check Plugin Download

https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/fs-ro

Check Interval Recommendation

Every 15 minutes

Can be called without parameters

Yes

Compiled for

Linux

Help

usage: fs-ro [-h] [-V] [--always-ok] [--ignore IGNORE] [--test TEST]

This plugin checks for read-only mount points, such as `/` mounted read-only
due to file system errors, mounted CD-ROMs or ISO files, etc. It always
ignores ramfs and squashfs (snapd) by default.

options:
  -h, --help       show this help message and exit
  -V, --version    show program's version number and exit
  --always-ok      Always returns OK.
  --ignore IGNORE  Mount point that should be ignored (repeatable). For
                   example, if you provide `/sys/fs`, all mount points
                   starting with `/sys/fs` will be ignored. Default:
                   ['/dev/loop', '/proc', '/snap', '/sys/fs']
  --test TEST      For unit tests. Needs "path-to-stdout-file,path-to-stderr-
                   file,expected-retc".

Usage Examples

./fs-ro --ignore /proc,/sys/fs

Output:

Everything is ok. 21 mount points checked.

States

  • WARN if a read only mount point is found (which is not on the ignore list).

Perfdata / Metrics

There is no perfdata.

Credits, License