ocsinventory-agent: 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/bin/ocsinventory-agent - from package: ocsinventory-agent

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