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

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