check_smb_share

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
esetman
Posts: 9
Joined: Mon Dec 08, 2014 4:17 pm

check_smb_share

Post 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?
esetman
Posts: 9
Joined: Mon Dec 08, 2014 4:17 pm

Re: check_smb_share

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_smb_share

Post 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?
Former Nagios Employee
esetman
Posts: 9
Joined: Mon Dec 08, 2014 4:17 pm

Re: check_smb_share

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_smb_share

Post by rkennedy »

I also found, https://github.com/Flameeyes/nagios-plu ... b_share.pl

Does this return a different result at all?
Former Nagios Employee
Locked