which os is this ?
This seems to be a security setting on the box where you are trying ot execute "sudo", there is a security setting called requiredtty (not sure exaclty this, but something like this ) may be in /etc/sudoers which disallows any one without a tty running sudoers. Since these command will be run by RSCD agent daemon, there is no tty associated with that.
One way is to change this security setting or avoid using sudo
We did manage to get around this by using "su [username] -c [command]" instead of sudo; su does not require a tty.