On 8/1/2013 2:29 AM, Janos SUTO wrote:
I just did another piler install (which went way better and faster
than the first attempt knowing the few gotchas now) and came across 2
more points:
The postinstall script creates the first cronjob as follows:
crontab -l -upiler
### PILERSTART
*/5 * * * * LC_ALL=C mpstat | tail -1 | awk '{print 1}' >
/archive/piler/stat/cpu.stat
please check if you have the following in util/postinstall.sh:
echo "*/5 * * * * LC_ALL=C mpstat | tail -1 | awk '{print \$11}' >
$LOCALSTATEDIR/piler/stat/cpu.stat" >> $CRON_TMP
notice the backslash before $11
it doesn't have the backslash:
grep cpu.stat /usr/local/src/piler-0.1.23/util/*
/usr/local/src/piler-0.1.23/util/postinstall.sh: echo "*/5 * * * *
LC_ALL=C mpstat | tail -1 | awk '{print $11}' >
$LOCALSTATEDIR/piler/stat/cpu.stat" >> $CRON_TMP
that's straight from wget from the piler download site.
Michael