Skip to main content

check-mountpoint

Overview

Ensures mountpoint entries in /etc/fstab match those in /proc/mounts.

Command-Line Options

OptionTypeDefaultDescription
--mountpointStringRequiredMountpoint pattern(s) to verify consistency (multiple allowed)
--timeoutInteger300Command execution timeout in seconds
--sinkStringdo_nothingTelemetry sink destination
--sink-optsMultiple-Sink-specific configuration
--verbose-outFlagFalseDisplay detailed output
--log-levelChoiceINFODEBUG, INFO, WARNING, ERROR, CRITICAL
--log-folderString/var/log/fb-monitoringLog directory
--heterogeneous-cluster-v1FlagFalseEnable heterogeneous cluster support

Exit Conditions

Exit CodeCondition
OK (0)Feature flag disabled (killswitch active)
OK (0)All fstab entries are mounted
WARN (1)Command execution fails
CRITICAL (2)Fstab entries missing from mounts

Usage Examples

check-mountpoint - Single Pattern

health_checks check-storage check-mountpoint \
--mountpoint /mnt \
[CLUSTER] \
app

check-mountpoint - Multiple Patterns

health_checks check-storage check-mountpoint \
--mountpoint /mnt \
--mountpoint /data \
[CLUSTER] \
app

check-mountpoint - With Timeout

health_checks check-storage check-mountpoint \
--mountpoint /mnt \
--timeout 30 \
[CLUSTER] \
app

check-mountpoint - Debug Mode

health_checks check-storage check-mountpoint \
--mountpoint /mnt \
--log-level DEBUG \
--verbose-out \
[CLUSTER] \
app