fence_apc: 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/fence_apc - from package: fence-agents

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

On Debian possible default full paths are:

/usr/sbin/fence_apc - from package: fence-agents

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