NCPA v2.1.4 not detecting NFS v3 mounts
NCPA v2.1.4 not detecting NFS v3 mounts
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
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
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:
And tell me if you see the mountpoint there.
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)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: NCPA v2.1.4 not detecting NFS v3 mounts
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'
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
You'll have to run first before running the above.
Code: Select all
python -m pip install psutil
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: NCPA v2.1.4 not detecting NFS v3 mounts
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.
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
Oh I am sorry, it looks like you did psutil.psutil.disk_partitions(all=True)
You should do
We just want to see what it brings up for disks. This is how it does it inside NCPA.
You should do
Code: Select all
import psutil
psutil.disk_partitions(all=True)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: NCPA v2.1.4 not detecting NFS v3 mounts
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
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
Any Update on the issue ..?
Re: NCPA v2.1.4 not detecting NFS v3 mounts
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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: NCPA v2.1.4 not detecting NFS v3 mounts
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.
I'm able to see the mounts in the GUI with v4.