Page 1 of 4
NCPA v2.1.4 not detecting NFS v3 mounts
Posted: Fri Jul 27, 2018 9:54 am
by madhu2852
Hi Team,
I tried to configure monitoring on NFS mounts on RHEL box with NCPA v2.1.4 installed. I found that ncpa is unable to capture the nfs mounts with (nfsvers=3) version.
Its able to capture the mounts which have default nfs version ie. v4.
Below is the o/p from fstab -
WORKING = nfs hard,intr,bg 0 0
NOT WORKING = nfs hard,intr,bg,nfsvers=3 0 0
Re: NCPA v2.1.4 not detecting NFS v3 mounts
Posted: Fri Jul 27, 2018 12:31 pm
by jomann
Have you edited the NCPA configuration to adjust the
exclude_fs_types variable accordingly?
Besides doing that, we are using psutil to get the mount data. I checked for issues with nfs and I don't see any. If the configuration is correct please let me know, you'd need to try installing psutil (pip install psutil) and then going into the python terminal and doing:
Code: Select all
import psutil
psutil.psutil.disk_partitions(all=True)
And tell me if you see the mountpoint there.
Re: NCPA v2.1.4 not detecting NFS v3 mounts
Posted: Fri Jul 27, 2018 12:54 pm
by madhu2852
Please find the details below:
cat /usr/local/ncpa/etc/ncpa.cfg| grep exclude
exclude_fs_types = aufs,autofs,binfmt_misc,cifs,cgroup,debugfs,devpts,devtmpfs,encryptfs,efivarfs,fuse,hugelbtfs,mqueue,overlayfs,proc,pstore,rpc_pipefs,securityfs,smb,sysfs,tmpfs,tracefs
#############################
python
Python 2.7.5 (default, Aug 4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.psutil.disk_partitions(all=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'ModuleWrapper' object has no attribute 'psutil'
Re: NCPA v2.1.4 not detecting NFS v3 mounts
Posted: Fri Jul 27, 2018 1:57 pm
by jomann
You'll have to run
first before running the above.
Re: NCPA v2.1.4 not detecting NFS v3 mounts
Posted: Fri Jul 27, 2018 2:16 pm
by madhu2852
Below is the o/p:
python -m pip install psutil
Requirement already satisfied: psutil in /usr/lib64/python2.7/site-packages
You are using pip version 9.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Re: NCPA v2.1.4 not detecting NFS v3 mounts
Posted: Tue Jul 31, 2018 7:54 am
by jomann
Oh I am sorry, it looks like you did
psutil.psutil.disk_partitions(all=True)
You should do
Code: Select all
import psutil
psutil.disk_partitions(all=True)
We just want to see what it brings up for disks. This is how it does it inside NCPA.
Re: NCPA v2.1.4 not detecting NFS v3 mounts
Posted: Tue Jul 31, 2018 10:14 am
by madhu2852
Yes im able to see mounts in the o/p from the above command.
fstype='nfs', opts='rw,relatime,vers=3
fstype='nfs4', opts='rw,relatime,vers=4.1
Re: NCPA v2.1.4 not detecting NFS v3 mounts
Posted: Wed Aug 01, 2018 3:27 pm
by madhu2852
Any Update on the issue ..?
Re: NCPA v2.1.4 not detecting NFS v3 mounts
Posted: Wed Aug 01, 2018 4:18 pm
by cdienger
Can you clarify what you mean when you say "unable to capture" ? Is a specific command not working? Are you not seeing something in the web UI?
Re: NCPA v2.1.4 not detecting NFS v3 mounts
Posted: Thu Aug 02, 2018 11:25 am
by madhu2852
When I logged into NCPA API(GUI) i'm not seeing the nfs mounts which are nfs v3.
I'm able to see the mounts in the GUI with v4.