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

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

On Debian possible default full paths are:

/usr/bin/cfgmaker - from package: mrtg

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