check_postgres_query_runtime: 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/check_postgres_query_runtime - from package: check-postgres

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