apgd: 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/sbin/apgd - from package: apg

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