-
Notifications
You must be signed in to change notification settings - Fork 8
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
HDD Temperature Check checks empty drive slots and exits with "unknown" #16
Comments
I think there should be a check of used HDs before get the temperature of each one. |
At line 505, I add the check if HDs are mounted before check temperature of each one. hdnum="$(_snmpgetval .1.3.6.1.4.1.24681.1.2.10.0)" |
@amolettaufi Seems like i'm doing the edit wrong, after editing I don't get any performance data anymore and no warning or critical if the harddrives get to hot. Could you create a fork, make your edit and then create a pull request? Alternatively could you post all the code between |
I attach the modified script (remove the TXT extention before use)
|
Although the hdstatus check sucessfully detects occupied hdd slots :
the hdd temperature check is checking every slot and then exits with unknow instead of ok :
The text was updated successfully, but these errors were encountered: