traptoemail: 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/traptoemail - from package: net-snmp-perl

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

On Debian possible default full paths are:

/usr/bin/traptoemail - from package: snmptrapd

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