Skip to content

Commit b61d159

Browse files
committed
fix(fs-ro): ignore /run/credentials (https://systemd.io/CREDENTIALS/)
1 parent 1da262a commit b61d159

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Monitoring Plugins:
3434
* about-me: error in perfdata if using `--dmidecode` and there is no HW information
3535
* about-me: fix various errors with `sys_dimensions` on some machines
3636
* by-ssh: add missing `--verbose` parameter
37+
* fs-ro: ignore `/run/credentials` (https://systemd.io/CREDENTIALS/)
3738
* ntp-*: prevent `TypeError: ''=' not supported between instances of 'int' and 'str'`
3839

3940

check-plugins/fs-ro/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ options:
3131
--ignore IGNORE Mount point that should be ignored (repeatable). For
3232
example, if you provide `/sys/fs`, all mount points
3333
starting with `/sys/fs` will be ignored. Default:
34-
['/dev/loop', '/proc', '/snap', '/sys/fs']
34+
['/dev/loop', '/proc', '/run/credentials', '/snap',
35+
'/sys/fs']
3536
--test TEST For unit tests. Needs "path-to-stdout-file,path-to-stderr-
3637
file,expected-retc".
3738
```

check-plugins/fs-ro/fs-ro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ from lib.globals import (STATE_OK, STATE_UNKNOWN, # pylint: disable=C0413
2323
STATE_WARN)
2424

2525
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
26-
__version__ = '2025100601'
26+
__version__ = '2025120201'
2727

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

32-
DEFAULT_IGNORE = ['/dev/loop', '/proc', '/snap', '/sys/fs']
32+
DEFAULT_IGNORE = ['/dev/loop', '/proc', '/run/credentials', '/snap', '/sys/fs']
3333

3434

3535
def parse_args():

0 commit comments

Comments
 (0)