json.cgi: 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/share/collectd/collection3/bin/json.cgi - from package: collectd-web

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

On Debian possible default full paths are:

/usr/share/doc/collectd-core/examples/collection3/bin/json.cgi - from package: collectd-core

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