hp-pqdiag: 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/hp-pqdiag - from package: hplip

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

On Debian possible default full paths are:

/usr/bin/hp-pqdiag - from package: hplip-gui

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