for any plug in launched by nagios, nagios is expecting an exit code of this plug in equal to
0, 1, 2 or 3.
With any other exit code, you'll end up with a message "(Return code of XXX is out of bounds)".
So, test your plugin in command line mode, and type "echo $?" after, to get its exit code.