Fileshare monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
n8860104460
Posts: 32
Joined: Wed Jan 11, 2017 3:36 pm

Fileshare monitoring

Post 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.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Fileshare monitoring

Post 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.
n8860104460
Posts: 32
Joined: Wed Jan 11, 2017 3:36 pm

Re: Fileshare monitoring

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Fileshare monitoring

Post 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?
n8860104460
Posts: 32
Joined: Wed Jan 11, 2017 3:36 pm

Re: Fileshare monitoring

Post 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 ?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Fileshare monitoring

Post 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?
n8860104460
Posts: 32
Joined: Wed Jan 11, 2017 3:36 pm

Re: Fileshare monitoring

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

Re: Fileshare monitoring

Post by rkennedy »

Does your share require an authentication at all? May need to pass those parameters.
Former Nagios Employee
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Fileshare monitoring

Post 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?
Former Nagios employee
https://www.mcapra.com/
n8860104460
Posts: 32
Joined: Wed Jan 11, 2017 3:36 pm

Re: Fileshare monitoring

Post 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.
Locked