Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check btrfs: support an automatic detection of all available btrfs filesystems #35

Open
calestyo opened this issue Dec 15, 2021 · 1 comment

Comments

@calestyo
Copy link

Hey.

It would be nice, if there was a switch that includes all available btrfs filesystems in the check, so that one doesn't have to configure each check manually if different hosts have many (different) btrfs filesystems at different mount points.

Maybe with some --exclude-fs switch that allows to exclude certain fs. That switch could then allow to specify via mountpoint or via UUID.

Not sure what the best way would be to detect all btrfs,... I mean one could of course parse /proc/self/mountinfo (but beware that its format is tricky: it has varying number of optional columns in the middle), but one would want to pick the same btrfs more than once, (which could easily happen with subvolumes and multiple mounts of these).

Cheers,
Chris.

@knorrie
Copy link
Owner

knorrie commented Dec 17, 2021

Hi! Yes, that would be useful, good suggestion. Like, if no specific path is provided, just check all of the mounted filesystems. This is actually similar to the behaviour of the munin monitoring plugin, which also by default creates graphs for everything it finds.

There's btrfs.utils.mounted_filesystem_paths() already to list them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants