cf-runagent: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/sbin/cf-runagent - from package: cfengine

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/sbin/cf-runagent - from package: cfengine3
/usr/lib/debug/usr/sbin/cf-runagent - from package: cfengine3-dbg

You may install the required package with command apt-get install {package}
Error in other languages:
cf-runagent: bevel nie gevind nie
cf-runagent: comandă negăsită
cf-runagent: comando não encontrado
cf-runagent: commande introuvable
cf-runagent: command not found
cf-runagent: käsku ei ole
cf-runagent: không tìm thấy lệnh
cf-runagent: komanda nerasta
cf-runagent: Kommando nicht gefunden.
cf-runagent: kommandot finns inte
cf-runagent: komut yok
cf-runagent: nie znaleziono polecenia
cf-runagent: níor aimsíodh an t-ordú
cf-runagent: no se encontró la orden
cf-runagent: no s'ha trobat l'ordre
cf-runagent: opdracht niet gevonden
cf-runagent: parancs nem található
cf-runagent: perintah tidak ditemukan
cf-runagent: príkaz nenájdený
cf-runagent: příkaz nenalezen
cf-runagent: команда не найдена
cf-runagent: командата не е открита
cf-runagent: 命令找不到
cf-runagent: コマンドが見つかりません