Return code of 255 is out of bounds

Hi guys, im working with nagios, and i have this problem.

Some checks give me “Return code of 255 is out of bounds”, the strange thing is that only happens with some check in some servers, por example a memory or a disk check. Sometimes get ok and sometimes the return code…

One thing that i observe is that this happen only with checks that runs by ssh. It works from most of the servers, but with other 4 o 5 this checks are working bad. any idea why is happing this?