Fix disk health check system
This commit is contained in:
parent
d2bc0a522e
commit
2f6d5123a5
4 changed files with 7 additions and 8 deletions
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Simple daily SMART report script - plain text version
|
||||
# Only checks SMART attributes and sends report via Gotify
|
||||
|
||||
|
|
@ -110,4 +108,4 @@ main() {
|
|||
echo "Daily SMART report completed"
|
||||
}
|
||||
|
||||
main "$@"
|
||||
main "$@"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# SMART daemon alert script for Gotify notifications
|
||||
# Called by smartd when SMART issues are detected
|
||||
# No arguments needed - uses SMARTD_DEVICE environment variable
|
||||
|
|
@ -93,4 +91,4 @@ touch "$LOG_FILE" 2>/dev/null || {
|
|||
}
|
||||
|
||||
# Main execution
|
||||
send_smartd_alert
|
||||
send_smartd_alert
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Gotify notification script for disk health monitoring
|
||||
# Usage: gotify-notify.sh <url> <token> <priority> <title> <message>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue