Cronjob

/usr/bin/iostat -d /dev/sda -t 58 2 | awk ‘NR==9{print $2}’ > /var/lib/nagios/iostat/tps.tmp && mv /var/lib/nagios/iostat/tps.tmp /var/lib/nagios/iostat/tps

ich have changed the cronjob like this using one awk to get the right value. And I also used other log locations due to linux FHS.

May be this is better… or not… just wanted to post 😉