[GH-ISSUE #218] Feature Request: SMART Disk Check and Reporting #133

Closed
opened 2026-03-02 02:13:50 +03:00 by kerem · 7 comments
Owner

Originally created by @johnnyq on GitHub (Dec 21, 2020).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/218

This would be awesome if we can setup SMART DISK check to make sure disks are running good. Checking for bad sectors, high temps, SSD Wearout etc

Originally created by @johnnyq on GitHub (Dec 21, 2020). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/218 This would be awesome if we can setup SMART DISK check to make sure disks are running good. Checking for bad sectors, high temps, SSD Wearout etc
kerem closed this issue 2026-03-02 02:13:50 +03:00
Author
Owner

@dinger1986 commented on GitHub (Dec 21, 2020):

You can check this via the event viewer.

I can share my check disks script I run if you like? I keep on meaning to upload my scripts to the community scripts

<!-- gh-comment-id:749234706 --> @dinger1986 commented on GitHub (Dec 21, 2020): You can check this via the event viewer. I can share my check disks script I run if you like? I keep on meaning to upload my scripts to the community scripts
Author
Owner

@DjMagicFingers commented on GitHub (Dec 21, 2020):

You can also use a script (look at the discord "scripts" tab - there is already a done script for this) to automatically check and report if something bad happens to your drives or your drive controllers.

<!-- gh-comment-id:749236169 --> @DjMagicFingers commented on GitHub (Dec 21, 2020): You can also use a script (look at the discord "scripts" tab - there is already a done script for this) to automatically check and report if something bad happens to your drives or your drive controllers.
Author
Owner

@dinger1986 commented on GitHub (Dec 21, 2020):

# Checks local disks for errors reported in event viewer within the last 24 hours

$ErrorActionPreference= 'silentlycontinue'
$TimeSpan = (Get-Date) - (New-TimeSpan -Day 1)
if (Get-WinEvent -FilterHashtable @{LogName='system';ID='11','9','15','52','129','7','98';Level=2,3;ProviderName='*disk*','*storsvc*','*ntfs*';StartTime=$TimeSpan})

{
Write-Host "Disk errors detected please investigate"
Get-WinEvent -FilterHashtable @{LogName='system';ID='11','9','15','52','129','7','98';Level=2,3;ProviderName='*disk*','*storsvc*','*ntfs*';StartTime=$TimeSpan}
exit 1
}


else
{
Write-Host "Disks are Healthy"
exit 0
}


Exit $LASTEXITCODE
<!-- gh-comment-id:749237211 --> @dinger1986 commented on GitHub (Dec 21, 2020): ``` # Checks local disks for errors reported in event viewer within the last 24 hours $ErrorActionPreference= 'silentlycontinue' $TimeSpan = (Get-Date) - (New-TimeSpan -Day 1) if (Get-WinEvent -FilterHashtable @{LogName='system';ID='11','9','15','52','129','7','98';Level=2,3;ProviderName='*disk*','*storsvc*','*ntfs*';StartTime=$TimeSpan}) { Write-Host "Disk errors detected please investigate" Get-WinEvent -FilterHashtable @{LogName='system';ID='11','9','15','52','129','7','98';Level=2,3;ProviderName='*disk*','*storsvc*','*ntfs*';StartTime=$TimeSpan} exit 1 } else { Write-Host "Disks are Healthy" exit 0 } Exit $LASTEXITCODE ```
Author
Owner

@dinger1986 commented on GitHub (Dec 21, 2020):

add that as a powershell script

<!-- gh-comment-id:749237374 --> @dinger1986 commented on GitHub (Dec 21, 2020): add that as a powershell script
Author
Owner

@johnnyq commented on GitHub (Dec 22, 2020):

@dinger1986 Thank you for sharing your code. I am looking forward to your scripts. @DjMagicFingers I will check out discord. thanks

<!-- gh-comment-id:749284874 --> @johnnyq commented on GitHub (Dec 22, 2020): @dinger1986 Thank you for sharing your code. I am looking forward to your scripts. @DjMagicFingers I will check out discord. thanks
Author
Owner

@dinger1986 commented on GitHub (Dec 26, 2020):

Think this has now been dealt with so can be closed?

<!-- gh-comment-id:751349813 --> @dinger1986 commented on GitHub (Dec 26, 2020): Think this has now been dealt with so can be closed?
Author
Owner

@johnnyq commented on GitHub (Dec 26, 2020):

Absolutely Closing this Thanks

<!-- gh-comment-id:751373063 --> @johnnyq commented on GitHub (Dec 26, 2020): Absolutely Closing this Thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#133
No description provided.