Forum Discussion
Configuration SMB Monitors
- Mar 13, 2014
It seems as though the issue was due to a missing directory. The message below which was seen in the logs was due to the local directory not being present.
file.txt was not transferred: No such file or directory
The monitoring uses /var/run/monitors as a default directory. This appears to be hardcoded. The get commands are successful and the files are being placed in /var/run as indicated by the preceding lines in the logs.
smbclient //longweb03sandbo/share mypassword -I 10.200.8.28 -p 445 -c cd .; cd; get file.txt file.txt.18261 -U myuser dirstring: Current directory is \ Domain=[LONGWEB03SANDBO] OS=[Unix] Server=[Samba 3.0.33-3.39.el5_8] getting file \file.txt of size 2 as file.txt.18261 (0.5 kb/s) (average 0.5 kb/s) Recvd: 'Current directory is \
Creating /var/run/monitors directory resolved the issue. We now get:
smbclient //longweb03sandbox/share mypassword -I 10.200.8.28 -p 445 -c cd .; cd; get damian.txt damian.txt.24691 -U 101135 dirstring: Current directory is \ Domain=[LONGWEB03SANDBO] OS=[Unix] Server=[Samba 3.0.33-3.39.el5_8] getting file \damian.txt of size 6 as damian.txt.24691 (1.5 kb/s) (average 1.5 kb/s) Recvd: 'Current directory is \ ' up
I've done that, and it looks like the file is being returned to the Monitor:
[2014/03/12 13:15:12, 3] smbd/vfs.c:reduce_name(821)
reduce_name [file.txt] [/tmp/share]
[2014/03/12 13:15:12, 3] smbd/vfs.c:reduce_name(922)
reduce_name: file.txt reduced to /tmp/share/file.txt
[2014/03/12 13:15:12, 3] smbd/dosmode.c:unix_mode(142)
unix_mode(file.txt) returning 0744
[2014/03/12 13:15:12, 3] smbd/vfs.c:reduce_name(821)
reduce_name [file.txt] [/tmp/share]
[2014/03/12 13:15:12, 3] smbd/vfs.c:reduce_name(922)
reduce_name: file.txt reduced to /tmp/share/file.txt
[2014/03/12 13:15:12, 2] smbd/open.c:open_file(391)
101135 opened file file.txt read=Yes write=No (numopen=1)
[2014/03/12 13:15:12, 3] smbd/process.c:process_smb(1101)
Transaction 8 of length 76
[2014/03/12 13:15:12, 3] smbd/process.c:switch_message(932)
switch message SMBtrans2 (pid 22708) conn 0x2b3e488478b0
[2014/03/12 13:15:12, 3] smbd/trans2.c:call_trans2qfilepathinfo(3254)
call_trans2qfilepathinfo: TRANSACT2_QFILEINFO: level = 263
[2014/03/12 13:15:12, 3] smbd/trans2.c:call_trans2qfilepathinfo(3365)
call_trans2qfilepathinfo file.txt (fnum = 11540) level=263 call=7 total_data=0
[2014/03/12 13:15:12, 3] smbd/process.c:process_smb(1101)
Transaction 9 of length 59
[2014/03/12 13:15:12, 3] smbd/process.c:switch_message(932)
switch message SMBreadX (pid 22708) conn 0x2b3e488478b0
[2014/03/12 13:15:12, 3] lib/util.c:fcntl_getlock(2075)
fcntl_getlock: fd 26 is returned info 2 pid 0
[2014/03/12 13:15:12, 3] smbd/reply.c:send_file_readX(2641)
send_file_readX fnum=11540 max=64512 nread=2
[2014/03/12 13:15:12, 3] smbd/process.c:process_smb(1101)
Transaction 10 of length 59
[2014/03/12 13:15:12, 3] smbd/process.c:switch_message(932)
switch message SMBreadX (pid 22708) conn 0x2b3e488478b0
[2014/03/12 13:15:12, 3] lib/util.c:fcntl_getlock(2075)
fcntl_getlock: fd 26 is returned info 2 pid 0
[2014/03/12 13:15:12, 3] smbd/reply.c:send_file_readX(2641)
send_file_readX fnum=11540 max=64512 nread=0
[2014/03/12 13:15:12, 3] smbd/process.c:process_smb(1101)
Transaction 11 of length 45
[2014/03/12 13:15:12, 3] smbd/process.c:switch_message(932)
switch message SMBclose (pid 22708) conn 0x2b3e488478b0
[2014/03/12 13:15:12, 3] smbd/reply.c:reply_close(3338)
close fd=26 fnum=11540 (numopen=1)
[2014/03/12 13:15:12, 2] smbd/close.c:close_normal_file(406)
101135 closed file file.txt (numopen=0) NT_STATUS_OK
But it's still marked as down...
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com