qmsg: 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/qmsg - from package: torque-client

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