check_postgres.pl: 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/check_postgres.pl - from package: check_postgres

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