cfagent: 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 Debian possible default full paths are:

/usr/lib/debug/usr/sbin/cfagent - from package: cfengine2-dbg
/usr/sbin/cfagent - from package: cfengine2

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