NCPA v2.1.4 not detecting NFS v3 mounts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NCPA v2.1.4 not detecting NFS v3 mounts

Post by cdienger »

I haven't been able to reproduce it yet, but try commenting out the exclude_fs_types line to allow everything and let me know if this changes the behavior at all. I honestly don't expect it to, but it is worth testing while I try to reproduce on my end.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

Re: NCPA v2.1.4 not detecting NFS v3 mounts

Post by madhu2852 »

I did try that but still can't see the mounts in the NCPA GUI.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NCPA v2.1.4 not detecting NFS v3 mounts

Post by cdienger »

Thanks for clarifying. We're working to reproduce the issue - can you let us know what version of redhat the lcient is installed on? "cat /etc/redhat-release"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

Re: NCPA v2.1.4 not detecting NFS v3 mounts

Post by madhu2852 »

cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: NCPA v2.1.4 not detecting NFS v3 mounts

Post by jomann »

If you remove all the file system types from the exclude_fs_types section it will default to the large list you see there normally. Instead of doing that I would recommend setting it to something that doesn't exist like exclude_fs_types = testdebug to verify it isn't blocking any.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

Re: NCPA v2.1.4 not detecting NFS v3 mounts

Post by madhu2852 »

yep i tried that , still no luck!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NCPA v2.1.4 not detecting NFS v3 mounts

Post by ssax »

Please edit your /usr/local/ncpa/etc/ncpa.cfg and change these settings:

Code: Select all

uid = nagios
gid = nagios

exclude_fs_types =
To:

Code: Select all

uid = root
gid = root

exclude_fs_types = test
Then restart the ncpa_listener service and try it again:

Code: Select all

service ncpa_listener restart
Check by going to Live Data > Disks in the interface, hit CTRL-F and search for the mount.

Then go to API, select Disk from the dropdown, then CTRL-F and search for the mount.

Is showing in either?

Let us know the results.
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

Re: NCPA v2.1.4 not detecting NFS v3 mounts

Post by madhu2852 »

Nope its not showing either after the changes
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NCPA v2.1.4 not detecting NFS v3 mounts

Post by ssax »

Do you have any other machines that you're able to reproduce this on? We're currently unable to reproduce it.

What does the exact output show in your "mount" command output? For example, here's mine:

Code: Select all

XXX.XXX.XXX.XXX:/var/nfs on /mnt/nfs/var/nfs type nfs (rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=XXX.XXX.XXX.XXX,mountvers=3,mountport=42811,mountproto=udp,local_lock=none,addr=XXX.XXX.XXX.XXX)
How exactly are you mounting it?

Can you post what you have set in your /etc/exports on the NFS server for the share so that we can try to replicate it?
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

Re: NCPA v2.1.4 not detecting NFS v3 mounts

Post by madhu2852 »

mount command output:

Below mount is not visible in NCPA API
/data type nfs (rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=XXXX,mountvers=3,mountport=635,mountproto=udp,local_lock=none,addr=XXXX)

Below Mount is Visible in NCPA API
/logs type nfs4 (rw,relatime,vers=4.1,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=XXXX,local_lock=none,addr=XXXX)

We are using NetAPP storage.
Locked