hostid: 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/bin/hostid - from package: coreutils

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

On Debian possible default full paths are:

/usr/bin/hostid - from package: coreutils

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