Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose smartmontools output as a separate RestAPIv2 endpoint #119

Open
yaroslav-gwit opened this issue Apr 18, 2024 · 0 comments
Open

Expose smartmontools output as a separate RestAPIv2 endpoint #119

yaroslav-gwit opened this issue Apr 18, 2024 · 0 comments
Assignees
Labels
new feature Label to apply to new features development

Comments

@yaroslav-gwit
Copy link
Owner

It would be useful to create a separate RestAPI endpoint (could be located at /host/smartctl, or somewhere similar), which displays the smarctl data for all the drives available on any given system. This data could be then passed down to an ML/AI pipeline in order to predict a disc failure, and/or displayed in the WebUI.

Future refs:

# Install the C++ version of the smartmontools
pkg install smartmontools

# Get the disk information in JSON format
smartctl -a /dev/ada0 --json

# List all available disks on the system
camcontrol devlist
geom disk list

# Start a background disk test (useful for cronjobs)
smartctl -t <short|long|conveyance|select> /dev/ada0
@yaroslav-gwit yaroslav-gwit added the new feature Label to apply to new features development label Apr 18, 2024
@yaroslav-gwit yaroslav-gwit self-assigned this Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Label to apply to new features development
Projects
None yet
Development

No branches or pull requests

1 participant