Search found 4 matches

by koocotte
Tue Jul 01, 2008 12:26 pm
Forum: Scripts and Templates
Topic: Hardisk Temperature
Replies: 15
Views: 12208

streaker69 wrote:
rw-r----- 1 root disk 3, 65 Jun 30 08:45 /dev/hdb1
-rwxr-xr-x 1 root root 187224 May 24 12:42 /usr/sbin/smartctl
I tested his script out against my second HD in this machine, as the first HD doesn't report Temp.
Your second HD is labelled /dev/hdb and not /dev/hdb1
by koocotte
Tue Jul 01, 2008 10:58 am
Forum: Scripts and Templates
Topic: Hardisk Temperature
Replies: 15
Views: 12208

I have the exact same script that he was working with yesterday running on my box, apparently it's running as apache, without any issues. This is frightening. streaker69 , can you post the result of ls -l /usr/sbin/smartctl /dev/hda changing /dev/hda according to you system? I have brw-rw---- 1 roo...
by koocotte
Tue Jul 01, 2008 7:58 am
Forum: Scripts and Templates
Topic: Hardisk Temperature
Replies: 15
Views: 12208

Diskfree runs without problem under root ... I try to put in hdtemp.sh /usr/sbin/smartctl -a /dev/hda | grep -i temperature | awk '{printf "Input:"$10}' ; smartctl require root user. Cacti cron job is usually run under an apache or www-data user and can not use smartctl. You need to confi...
by koocotte
Tue Jul 01, 2008 7:32 am
Forum: Scripts and Templates
Topic: Postfix Queues
Replies: 39
Views: 122751

I tried just tried this and it seems to be significantly faster: ( COUNT=`find $QUEUEDIR/$i -type f | wc -l | sed 's/ *//g'`) # timex /usr/local/getmailq-find.sh incoming:228 active:8 deferred:34 hold:0 real 0.29 user 0.00 sys 0.07 (COUNT=`qshape $i | grep TOTAL | awk '{print $2}'`) # timex /usr/lo...