Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/szolll/checkmk_raid
Script to check the status of RAID arrays using the mdadm utility.
https://github.com/szolll/checkmk_raid
Last synced: about 2 months ago
JSON representation
Script to check the status of RAID arrays using the mdadm utility.
- Host: GitHub
- URL: https://github.com/szolll/checkmk_raid
- Owner: szolll
- Created: 2024-10-27T17:52:31.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-27T17:55:40.000Z (4 months ago)
- Last Synced: 2024-11-05T19:06:42.707Z (3 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RAID Status Checker Plugin for Checkmk
## Description
This Python script checks the status of RAID arrays using the mdadm utility. It provides insights into the health of each RAID array on the system.## Workflow
1. **Scan for RAID Arrays**:
- Executes the command `mdadm --detail --scan` to identify all RAID arrays present.2. **Check RAID Array Existence**:
- If no arrays are found, the script returns an error code and a corresponding message.3. **Status Check for Each Array**:
- For each detected RAID array:
- Retrieves detailed status with `mdadm --detail `.
- Assesses the health of the array based on its reported state.
- Collects status messages indicating whether the array is clean or has issues.4. **Return Codes**:
- **Code 0**: All RAID arrays are clean.
- **Code 1**: No RAID arrays found.
- **Code 2**: Issues detected in one or more arrays, with detailed messages included.
- **Code 3**: An unexpected error occurred during execution.## Usage
Run this script as a standalone program. It outputs the status code and message to the console, providing a quick overview of the RAID array health.## Author
Daniel Sol## Git
github.com/szolll