----- "Gerry Creager" <[EMAIL PROTECTED]> wrote: > Anyone got a good script already cast to do this or > do we need to start reinventing the annular > transportation device?
I forgot to attach our ATD! ;-) The reason it worries about high load is that we used to see processes hang trying to read from the IPMI device, but haven't seen that with more recent kernels.. cheers, Chris #!/bin/sh [ -e /dev/ipmi0 ] || exit 0 load=$(cat /proc/loadavg | awk '{print $3}' | awk -F. '{print $1}') if [ $load -gt 16 ] then exit 0 fi TEMPS=$(/usr/bin/ipmitool sensor | grep Temp | awk '{print $1 ":" $4 }') for i in $TEMPS; do type=`echo $i | awk -F: '{print $1}'` temp=`echo $i | awk -F: '{print $2}'` gmetric -n "$type Temp" -v "$temp" -t float -u Celcius done -- Christopher Samuel - (03) 9925 4751 - Systems Manager The Victorian Partnership for Advanced Computing P.O. Box 201, Carlton South, VIC 3053, Australia VPAC is a not-for-profit Registered Research Agency _______________________________________________ Beowulf mailing list, Beowulf@beowulf.org To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf