Skip to content

Monitoring plugin to check how long ago the last ZFS scrub was performed.

License

Notifications You must be signed in to change notification settings

Josef-Friedrich/check_zpool_scrub

Folders and files

NameName
Last commit message
Last commit date
Dec 3, 2022
Nov 19, 2022
Jun 21, 2021
Dec 4, 2022
Dec 3, 2022
Dec 3, 2022
Jun 23, 2021
Aug 3, 2024
Nov 26, 2022
Dec 3, 2022
Dec 3, 2022
Aug 1, 2021
Dec 4, 2022
Aug 22, 2018
Aug 3, 2024
Aug 3, 2024
Dec 3, 2022
Aug 3, 2024

Repository files navigation

Note: The monitoring plugin is currently being rewritten from Shell (check_zpool_scrub) to Python (check_zpool_scrub.py). Use the Shell version until further notice.

check_zpool_scrub

Summary / Short description

Monitoring plugin to check how long ago the last ZFS scrub was performed.

Usage

check_zpool_scrub v2.0
Copyright (c) 2016-2021 Josef Friedrich <josef@friedrich.rocks>

Monitoring plugin to check how long ago the last ZFS scrub was performed.


Usage: check_zpool_scrub <options>

Options:
 -c, --critical=OPT_CRITICAL
    Interval in seconds for critical state.
 -p,--pool=OPT_POOL
    Name of the pool. If this option is omitted all pools are checked.
 -h, --help
    Show this help.
 -s, --short-description
    Show a short description / summary.
 -v, --version
    Show the version number.
 -w, --warning=OPT_WARNING
    Interval in seconds for warning state. Must be lower than -c.

Performance data:

POOL is the name of the pool

 - POOL_last_ago
    Time interval in seconds for last scrub.
 - POOL_progress
    Percent 0 - 100
 - POOL_speed
    MB per second.
 - POOL_time
    Time to go in seconds.

Details about the implementation of this monitoring plugin:

This monitoring plugin grabs the last scrub date from the command
'zpool status POOL'.

Project pages

Testing

make test