A script being run by piAMON on a remote server is not returning the desired results. It's returning nothing for a value where a value should be present. When running the script on the actual server it works correctly.
Your starting point for diagnosis should be placing the MC in debug via the BSD Admin Console.
Once in debug check the $PPLOG/piAMON_Log. This will detail the actual ssh commands being issued.
Try running the ssh command direct from the BES command line to see what results are returned.
It's important to note that SSH does not execute a login shell, it executes the command being passed so if an environment needs to be established it would have to be done from the command. In short you may find that if your script or called commands from the script are reliant on environmental variables being set, even simple ones such as $PATH, that you will need to set these within your script. Sometimes it's easier to simply run the relevant profile script for the shell the script is running under.
Once done check the script runs successfully both locally and remotely across SSH.