pmlogrewrite: 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/libexec/pcp/bin/pmlogrewrite - from package: pcp

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

On Debian possible default full paths are:

/usr/lib/pcp/bin/pmlogrewrite - from package: pcp

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