check_disk: Add more filesystems to ignore by default by RincewindsHat · Pull Request #1835 · monitoring-plugins/monitoring-plugins · GitHub
Skip to content

check_disk: Add more filesystems to ignore by default#1835

Closed
RincewindsHat wants to merge 4 commits into
monitoring-plugins:masterfrom
RincewindsHat:check_disk_enhanced_exclude_defaults
Closed

check_disk: Add more filesystems to ignore by default#1835
RincewindsHat wants to merge 4 commits into
monitoring-plugins:masterfrom
RincewindsHat:check_disk_enhanced_exclude_defaults

Conversation

@RincewindsHat

@RincewindsHat RincewindsHat commented Feb 3, 2023

Copy link
Copy Markdown
Member

Replaces #1749
Fixes #1748

@waja

waja commented Feb 3, 2023

Copy link
Copy Markdown
Member

@RincewindsHat

Copy link
Copy Markdown
Member Author

Anyone got an idea why that fails?

@KriSchu

KriSchu commented Feb 24, 2023

Copy link
Copy Markdown
Contributor

Anyone got an idea why that fails?

Tests and the test setup are absolutely not my expertise, so please excuse if this is completely stupid, but isn't it failing because, by your code change you exclude tmpfs filesystems, but the test pipeline adds tmpfs filesystems to the docker container which is running the tests?
At least I think that this could explain, why the test expects two filesystems, but found 0 filesystems in the output:

#   Failed test 'Got two mountpoints in output'
#   at ./t/check_disk.t line 36.
#          got: 0
#     expected: 2

The other check is about the exit code being 3 (Unknown), while 0 (OK) is expected.
If both filesystems are excluded, that there is no filesystem to check and the plugin prints:
DISK UNKNOWN - No disks were found for provided parameters;|

I believe the test setup could explain these failed tests and that it can be solved by either changing to a different fs type or by modifying the tests.

@RincewindsHat

Copy link
Copy Markdown
Member Author

That sounds like a likely explanation. At this point I see a general problem with those changes here. I am not able to remove stuff from the exclusion list during runtime, so this is equivalent to saying "this plugin ignores those filesystem types ALWAYS" which is going to far IMHO.

@waja

waja commented Apr 12, 2023

Copy link
Copy Markdown
Member

@RincewindsHat so same counts for #1749?

@waja waja modified the milestones: 2.4, 2.3.6 Oct 18, 2023
@RincewindsHat

Copy link
Copy Markdown
Member Author

@waja sorry, this went under. Yes, same problem. Question is whether we want to ignore those filesystems ALL THE TIME.

@RincewindsHat RincewindsHat force-pushed the check_disk_enhanced_exclude_defaults branch from 4942f7c to d8186bf Compare February 23, 2024 14:13
@waja waja modified the milestones: 2.3.6, 2.4.1 Jul 23, 2024
@RincewindsHat

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check_disk: Selectively exclude squashfs, tracefs and tmpfs by default.

3 participants