check_smb_shares Return code of 255 is out of bounds


First of all sorry for bad english.
I installed check_smb_shares plugin. In terminal it works fine:

[[email protected] libexec]$ ./ -S FILECOUNT -H host -U username -P password -D domain -A path
20 Items (17 Directorys, 3 Files, 0 Links, 261350 ) in smb://host/path | ‘FILECOUNT’=20;1;2

But in nagios i`ve got error (Return code of 255 is out of bounds)

This is my configuration file fragments:


‘check_smb_shares’ command definition

define command{
command_name check_smb_shares
command_line $USER1$/ -H $HOSTADRESS$ -S $ARG1$ -U $ARG2$ -P $ARG3$ -D $ARG4$ -A $ARG5$


define service{
use generic-service
host_name hostname
service_description Share Check
check_command check_smb_shares!FILECOUNT!username!password!domain!path

Can anybody tell me, what can i do for solve this problem?