Really? I'll review my emails and see if I can see any temp change that is independent of a SMART run.
Nope, there's a test in the script and I tested it on a non-scrubbed pool (it's even in the example result).
The error says clearly that it can't convert 2015-Mar-30_19:25:25 with the %Y-%b-%e_%H:%M:%S format. Why? I don't know, everything seems right.
Can you post the output of cat -e zpool-report.sh please? (in between code tags or in a pastebin)
[root@freenas1] ~# ./zpool_report.sh date: illegal option -- - usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format] ./zpool_report.sh: arithmetic expression: expecting primary: "((1434471904 - ) + 43200) / 86400" [root@freenas1] ~# date -j -f '%Y-%b-%e_%H:%M:%S' usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format] [root@freenas1] ~#
And could I beg, pay or otherwise cajole you into integrating SAS into the SMART drive reporting script? :)
Does it not work?
SAS version:
Work in progress...
Is there a way to make the scripts run say every week, or is there a script...to call the scripts i want and make it run every week or so? Like make the calling script run at startup and then it reruns itself every week?
drives=`sysctl -n kern.disks | awk '{for (i=NF; i!=0 ; i--) print $i }'`
+------+---------------+----+-----+-----+-----+-------+-------+--------+------+----------+------+-------+ |Device|Serial |Temp|Power|Start|Spin |ReAlloc|Current|Offline |Seek |Total |High |Command| | | | |On |Stop |Retry|Sectors|Pending|Uncorrec|Errors|Seeks |Fly |Timeout| | | | |Hours|Count|Count| |Sectors|Sectors | | |Writes|Count | +------+---------------+----+-----+-----+-----+-------+-------+--------+------+----------+------+-------+ |da0 | | | | | | | | | N/A| N/A| N/A| N/A| |ada0 |WD-WCC4N5PAA9J9| 36 | 577| 9| 0| 0| 0| 0| N/A| N/A| N/A| N/A| |ada1 |WD-WMC4N0K7SYAC| 36 | 288| 5| 0| 0| 0| 0| N/A| N/A| N/A| N/A| |ada2 |WD-WCC4N0VDAHZE| 34 | 932| 17| 0| 0| 0| 0| N/A| N/A| N/A| N/A| |ada3 |WD-WCC4N0VDAPH6| 36 | 928| 11| 0| 0| 0| 0| N/A| N/A| N/A| N/A| |ada4 |WD-WCC4N5VPU7EJ| 35 | 1266| 22| 0| 0| 0| 0| N/A| N/A| N/A| N/A| |ada5 |WD-WCC4N0VDAS3T| 33 | 1263| 19| 0| 0| 0| 0| N/A| N/A| N/A| N/A|
+------+---------------+----+-----+-----+-----+-------+-------+--------+------+----------+------+-------+ |Device|Serial |Temp|Power|Start|Spin |ReAlloc|Current|Offline |Seek |Total |High |Command| | | | |On |Stop |Retry|Sectors|Pending|Uncorrec|Errors|Seeks |Fly |Timeout| | | | |Hours|Count|Count| |Sectors|Sectors | | |Writes|Count | +------+---------------+----+-----+-----+-----+-------+-------+--------+------+----------+------+-------+ |cd0 |[No | | | | | | | | N/A| N/A| N/A| N/A| |da0 | | | | | | | | | N/A| N/A| N/A| N/A| |ada0 |WD-WMC1U5671723| 34 |24571| 2296| 0| 0| 0| 0| N/A| N/A| N/A| N/A| |ada1 |WD-WMC1U5213900| 32 |24517| 2260| 0| 0| 0| 0| N/A| N/A| N/A| N/A| +------+---------------+----+-----+-----+-----+-------+-------+--------+------+----------+------+-------+
Annnnd that did it lol.....thanks man! I thought i looked there...must not of looked that hard or that closely lolCreate a cron job to schedule the running of the script(s). If you want to run it at startup, use the Init Script (section 6.2 of the docs).