Page 1 of 1

Not able to add disks for monitoring

Posted: Mon Dec 09, 2019 2:53 am
by adviserlogic
Not able to add disks for monitoring and also getting the error on existing disks "The node (/mnt/disk path) requested does not exist. You may be trying to access the '/' node." I have attached a screenshot for the same.

Re: Not able to add disks for monitoring

Posted: Mon Dec 09, 2019 9:25 am
by lmiltchev
Can you show us one of the failing checks run from the command line, along with the output of it?

Re: Not able to add disks for monitoring

Posted: Tue Dec 10, 2019 2:57 am
by adviserlogic
I am running the below command from the nagios server for our host for which I am getting disk monitoring error.

root@server:~# /usr/local/nagios/libexec/check_ncpa.py -H 10.XX.XX.XX -t 'XXXXXX' -P 5693 -M 'disk/logical/|mnt|path' -w 85 -c 90
The node (/mnt/path) requested does not exist. You may be trying to access the '/' node.

Re: Not able to add disks for monitoring

Posted: Tue Dec 10, 2019 9:24 am
by lmiltchev
Can nagios user see these mounts? Run the following commands on the client (remote machine), and show the output:

Code: Select all

su - nagios
mount
Also, try the following:

1. Open the ncpa.cfg file in a text editor, and comment out this line:

Code: Select all

exclude_fs_types = aufs,autofs,binfmt_misc,cifs,cgroup,configfs,debugfs,devpts,devtmpfs,encryptfs,efivarfs,fuse,fusectl,hugetlbfs,mqueue,nfs,overlayfs,proc,pstore,rpc_pipefs,securityfs,selinuxfs,smb,sysfs,tmpfs,tracefs
Example:

Code: Select all

# exclude_fs_types = aufs,autofs,binfmt_misc,cifs,cgroup,configfs,debugfs,devpts,devtmpfs,encryptfs,efivarfs,fuse,fusectl,hugetlbfs,mqueue,nfs,overlayfs,proc,pstore,rpc_pipefs,securityfs,selinuxfs,smb,sysfs,tmpfs,tracefs
2. Add a new line below it:

Code: Select all

exclude_fs_types = none
3. Save, exit and restart ncpa_listener:

Code: Select all

service ncpa_listener restart
Did this help? Can you see the disks when you run your check from the CLI on the Nagios XI server?

Can you also run the following commands from the command line on the Nagios XI server, and show the output?

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -V
/usr/local/nagios/libexec/check_ncpa.py -H <client ip> -P 5693 -t <token> -M 'system/agent_version'
where you substitute <client ip> and <token> with actual values.

Re: Not able to add disks for monitoring

Posted: Wed Dec 11, 2019 12:39 am
by adviserlogic
Thanks my issue has been resolved now.

Re: Not able to add disks for monitoring

Posted: Wed Dec 11, 2019 8:25 am
by lmiltchev
Great! I will be closing this topic now. If you have any further questions/issues, please start a new thread.