I have written a sample java plugin.... In the command definitions i have added this line
command_line $user1$/java -cp "path to my class file" "Myclassname"
I have edited localhosts.cfg also
but nagios saying "(return code of 127 is out of bounds - plugin may be missing)"
I know this error occurs if plugin is missing. but i have clearly specified the path...
What should i do get rid of this error.