Hi,
I think need to add “-b” or “-n” option for top, because sometimes escape control codes for terminal break parsing of top output.
/etc/inc/rrd.inc l:559
/* the CPU stats gathering function. */
$rrdupdatesh .= "`$top -b -d 2 -s 1 0 | $awk '{gsub(/%/, \"\")} BEGIN { \\\n";