pgbadger: 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/pgbadger - from package: pgbadger

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