Page 1 of 2

Fileshare monitoring

Posted: Sun Mar 26, 2017 12:41 pm
by n8860104460
Hi Team,

I have received a request to monitor File share e.g "\\Server Name\Path" i am looking a way Command or Plugins i have to use to monitor this type for file share.

Please provide your suggestion or let me know if any details you required.

Re: Fileshare monitoring

Posted: Sun Mar 26, 2017 7:29 pm
by dwhitfield
I really depends on what about it you want to monitor, but https://exchange.nagios.org//directory/ ... re/details is probably a good start.

Re: Fileshare monitoring

Posted: Wed Mar 29, 2017 1:58 pm
by n8860104460
dwhitfield wrote:I really depends on what about it you want to monitor, but https://exchange.nagios.org//directory/ ... re/details is probably a good start.

Thanks for you response, i tried with your suggestion but getting below error please advise.

[nagios@usaXXXXXXXXX libexec]$ ./check_smb_share -H 13.129.XX.XXX
./check_smb_share: line 8: /usr/bin/basename: No such file or directory
OK SMB Sharename: ntlmssp3_handle_neg_flags: Got challenge flags[0x60898201] - possible downgrade detected! missing_flags[0x00000010] - NT_STATUS_RPC_SEC_PKG_ERROR

[nagios@usaXXXXXXXXX libexec]$ ./check_smb_share -H 13.129.XX.XXX -s SOUXOE
./check_smb_share: line 8: /usr/bin/basename: No such file or directory
CRITICAL SMB Sharename: SOUXOE ntlmssp3_handle_neg_flags: Got challenge flags[0x60898201] - possible downgrade detected! missing_flags[0x00000010] - NT_STATUS_RPC_SEC_PKG_ERROR

Re: Fileshare monitoring

Posted: Wed Mar 29, 2017 2:21 pm
by dwhitfield
What's the output of rpm -qa | grep samba? You may just need to run yum update.

What's the output of cat /etc/*lease?

Re: Fileshare monitoring

Posted: Wed Mar 29, 2017 2:30 pm
by n8860104460
dwhitfield wrote:What's the output of rpm -qa | grep samba? You may just need to run yum update.

What's the output of cat /etc/*lease?

PFB output below
[nagios@usaXXXXXXXXX libexec]$ rpm -qa | grep samba
samba-common-3.6.23-36.el6_8.x86_64
samba4-libs-4.2.10-7.el6_8.x86_64
samba-winbind-clients-3.6.23-36.el6_8.x86_64
samba-client-3.6.23-36.el6_8.x86_64
samba-winbind-3.6.23-36.el6_8.x86_64
[nagios@usaXXXXXXXXX libexec]$ cat /etc/*release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Red Hat Enterprise Linux Server release 6.5 (Santiago)

as we are in process to update V5 but it may take time due to (Approval and security)
can we do it on same version ?

Re: Fileshare monitoring

Posted: Wed Mar 29, 2017 3:08 pm
by dwhitfield
We still don't know what you want to monitor. Just that it exists? You could try https://exchange.nagios.org/directory/P ... le/details -- There are other samba share checks, so you might just need to look at a few and see if they do what you want with your version of Samba.

We didn't write either one of those plugins, so it may take us some time to troubleshoot them. Those plugins were uploaded about the same time, so it's possible you will run into a similar issue.

What were you saying you are about to upgrade to v5? If you are say XI, then that really shouldn't matter. It's not working from the command line at this point. Maybe that's a typo and you meant CentOS7?

Re: Fileshare monitoring

Posted: Mon Apr 03, 2017 8:38 pm
by n8860104460
Please find below actual requirement.

\\usa0XX0cifXXXXX\CENXOE Note: This is a share utilized as a volume to store images for the application. Nagios need to verify availability and access to this share.

Re: Fileshare monitoring

Posted: Mon Apr 03, 2017 10:07 pm
by rkennedy
Does your share require an authentication at all? May need to pass those parameters.

Re: Fileshare monitoring

Posted: Tue Apr 04, 2017 10:55 am
by mcapra
Thanks @rkennedy!

If it's a simple samba share, the plugin provided by @dwhitfield should be sufficient. Have you encountered issues implementing that plugin?

Re: Fileshare monitoring

Posted: Mon Apr 10, 2017 3:10 am
by n8860104460
Hi All,

after further discussion with user we found that requested server is an EMC NAS appliance. and we cannot install anything (nagios client) on it so please advise can we monitor now if we don't have Nagios client on NAS appliance.