Created
March 23, 2012 13:23
-
-
Save nckltcha/2170582 to your computer and use it in GitHub Desktop.
Check's the HD Temp and Sends a Prowl Notification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| limit=39 | |
| t=`/usr/syno/bin/smartctl -a -d sat /dev/sda | grep "Temperature_Celsius" | awk '{print $10}'` | |
| if [ $t -ge $limit ] | |
| then | |
| wget --post-data 'apikey=XXXX&priority=2&application=DiskStation&event=Hard Drive&description=Hard Drive Temperature over Limit degress&url=http://myredhotcar.co.uk:5000' -O - http://api.prowlapp.com/publicapi/add | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment