Skip to content

Instantly share code, notes, and snippets.

@nckltcha
Created March 23, 2012 13:23
Show Gist options
  • Select an option

  • Save nckltcha/2170582 to your computer and use it in GitHub Desktop.

Select an option

Save nckltcha/2170582 to your computer and use it in GitHub Desktop.
Check's the HD Temp and Sends a Prowl Notification
#!/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