mount

check_mount

Checks the status for a mounted filesystem

Implementation

WindowsLinuxFreeBSDMacOSX

Examples

Default Check

check_mount mount=/ options=rw,relatime fstype=ext4
OK - mounts are as expected

Example using NRPE and Naemon

Naemon Config

define command{
    command_name         check_nrpe
    command_line         $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$ -a $ARG2$
}

define service {
    host_name            testhost
    service_description  check_mount
    use                  generic-service
    check_command        check_nrpe!check_mount!'mount=/' 'options=rw,relatime'
}

Argument Defaults

ArgumentDefault Value
warningissues != ''
criticalissues like ’not mounted'
empty-state3 (UNKNOWN)
empty-syntaxcheck_mount failed to find anything with this filter.
top-syntax${status} - ${problem_list}
ok-syntax${status} - mounts are as expected
detail-syntaxmount ${mount} ${issues}

Check Specific Arguments

ArgumentDescription
fstypeThe fstype to expect
mountThe mount point to check
optionsThe mount options to expect

Attributes

Filter Keywords

these can be used in filters and thresholds (along with the default attributes):

AttributeDescription
mountPath of mounted folder
optionsMount options
deviceDevice of this mount
fstypeFS type for this mount
issuesIssues found