Random Project

CRITICAL SMB Sharename

Hello,
If you enter:
./check_smb_share xx.xx.xx.xx -H -u -p ***** *****

so I get the answer:
OK SMB Sharename: Domain = [TEST] OS = [Windows Server 2012 Standard 9200] Server = [Windows Server 2012 Standard 6.2]
It’s alright.

If you enter the wrong IP guest, so I get the answer:
OK SMB Sharename: Connection to 172.17.40.155 failed (Error NT_STATUS_IO_TIMEOUT)
It should be CRITICAL think. If Notification to come.

If specify a paramater -s:
./check_smb_share H xx.xx.xx.xx appl -s -u -p ***** *****

so I get the answer:
CRITICAL SMB Sharename: appl Domain = [TEST] OS = [Windows Server 2012 Standard 9200] Server = [Windows Server 2012 Standard 6.2]
Does anyone know why?

If you enter:
smbclient -U username //xx.xx.xx.xx/appl
thus the connection is OK