lockfile-check: 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/lockfile-check - from package: lockfile-progs

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

On Debian possible default full paths are:

/usr/bin/lockfile-check - from package: lockfile-progs

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