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

add early SMART support dashboard for FreeNAS #209

Closed
rschitz opened this issue May 1, 2020 · 2 comments
Closed

add early SMART support dashboard for FreeNAS #209

rschitz opened this issue May 1, 2020 · 2 comments
Assignees

Comments

@rschitz
Copy link
Member

rschitz commented May 1, 2020

image

@rschitz
Copy link
Member Author

rschitz commented May 1, 2020

#! /bin/sh
for diskname in $(/sbin/sysctl -n kern.disks | /usr/bin/tr " " "\n")
do
/usr/local/sbin/smartctl -A /dev/$diskname | /usr/bin/grep -i 0x0 | /usr/bin/awk -v var="$diskname" '{system ("echo smart.$(
/bin/hostname -s)" "." var "." $2 " "$10 " $(date +%s)")}'|/usr/bin/nc -w 3 sexigraf.sexibyt.es 2003
done

@rschitz
Copy link
Member Author

rschitz commented Sep 22, 2020

image

rschitz added a commit that referenced this issue Sep 22, 2020
@rschitz rschitz closed this as completed Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant