Skip to main content

mounted-directory

Overview

Verifies specified directories are currently mounted.

Command-Line Options

OptionTypeDefaultDescription
--directory / -dPathRequiredDirectory(ies) to check if mounted (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)Directory is mounted
WARN (1)Mount command fails
CRITICAL (2)Directory not mounted

Usage Examples

mounted-directory - Single Directory

health_checks check-storage mounted-directory \
--directory /mnt/nfs \
[CLUSTER] \
app

mounted-directory - Multiple Directories

health_checks check-storage mounted-directory \
--directory /mnt/nfs \
--directory /mnt/lustre \
[CLUSTER] \
app

mounted-directory - With Timeout

health_checks check-storage mounted-directory \
--directory /mnt/nfs \
--timeout 30 \
[CLUSTER] \
app

mounted-directory - Debug Mode

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