Page 1 of 1

check_smb_share

Posted: Fri Jan 29, 2016 7:48 am
by esetman
Hello,
I have the problem on Nagios with check_smb_share

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

so:
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:
OK SMB Sharename: Connection to xx.xx.xx.xx failed (Error NT_STATUS_IO_TIMEOUT)
It should be CRITICAL think. if to be sent notification.



If specify a paramater -s:
./check_smb_share -H xx.xx.xx.xx -s appl -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 //xx.xx.xx.xx/appl -U username
thus the connection is OK

can you help me?

Re: check_smb_share

Posted: Fri Jan 29, 2016 7:53 am
by esetman
If you enter the wrong password so I returned:
OK SMB Sharename: session setup failed: NT_STATUS_LOGON_FAILURE

Again, I think it should be CRITICAL or WARNING

Re: check_smb_share

Posted: Fri Jan 29, 2016 12:10 pm
by rkennedy
I see that you also posted on the exchange, https://exchange.nagios.org/directory/P ... re/details. Thanks for doing so, hopefully the author will see it.

As this is a community plugin, we do not maintain them. I do agree with your logic though, that it should return a warning or critical.

After googling check_smb_share, I do see a few forks on Github - have you tried to see if any of them address this issue?

Re: check_smb_share

Posted: Mon Feb 01, 2016 2:38 am
by esetman
on github https://github.com/internetstaff/check_smb_share
the version: REVISION=0.9
I have version: REVISION=1.0
Both versions are treated equally

Re: check_smb_share

Posted: Mon Feb 01, 2016 11:18 am
by rkennedy
I also found, https://github.com/Flameeyes/nagios-plu ... b_share.pl

Does this return a different result at all?