https://github.com/pir8radio/ps_check_disks
A powershell script that checks all physical drives to make sure they are healthy, if not send a webhook to instatus.com. Great way to monitor windows storage spaces/pools for a drive failure.
https://github.com/pir8radio/ps_check_disks
drive hard monitor powershell spaces storage webhook windows
Last synced: 2 months ago
JSON representation
A powershell script that checks all physical drives to make sure they are healthy, if not send a webhook to instatus.com. Great way to monitor windows storage spaces/pools for a drive failure.
- Host: GitHub
- URL: https://github.com/pir8radio/ps_check_disks
- Owner: pir8radio
- Created: 2025-02-11T03:41:59.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-03-07T19:52:03.000Z (3 months ago)
- Last Synced: 2025-03-07T20:32:50.249Z (3 months ago)
- Topics: drive, hard, monitor, powershell, spaces, storage, webhook, windows
- Language: PowerShell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PS_Check_Disks
## Overview
This PowerShell script checks all physical drives to ensure they are healthy and "OK." If a drive's status is not healthy, the script sends a webhook to [InStatus.com](https://instatus.com). It's an excellent way to monitor Windows Storage Spaces/Pools for potential drive failures.
The script uses a temporary file to save the last state, ensuring it only sends a webhook when the status changes. This prevents repeated notifications when running the script via Task Scheduler.
## Features
- Verifies the health of all connected physical drives.
- Sends a webhook to InStatus.com if a drive's status changes.
- Prevents duplicate webhooks by tracking the last-known state.
- Fully customizable webhook payload and URL for integration with other services like Discord.## Usage Instructions
1. **Download** the PowerShell script.
2. Configure the script to:
- Specify the desired webhook URL and payload (optional).
3. Run the script manually or schedule it using **Task Scheduler** to automate drive health checks.
4. Receive notifications for any changes in drive health.## Customization
- Modify the webhook URL and payload to post alerts to other platforms like Discord.
- Adjust the script's configuration to fit your specific monitoring needs.This script is a simple yet powerful tool for proactive drive monitoring. Happy scripting!