Hello!
First of all sorry for bad english.
I installed check_smb_shares plugin. In terminal it works fine:
[nagios@nagios libexec]$ ./check_smb_shares.pl -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:
commands.cfg:
‘check_smb_shares’ command definition
define command{
command_name check_smb_shares
command_line $USER1$/check_smb_shares.pl -H $HOSTADRESS$ -S $ARG1$ -U $ARG2$ -P $ARG3$ -D $ARG4$ -A $ARG5$
}
server_smb_check.cfg
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?