Not able to add disks for monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
adviserlogic
Posts: 3
Joined: Fri Jul 26, 2019 2:52 am

Not able to add disks for monitoring

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not able to add disks for monitoring

Post by lmiltchev »

Can you show us one of the failing checks run from the command line, along with the output of it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
adviserlogic
Posts: 3
Joined: Fri Jul 26, 2019 2:52 am

Re: Not able to add disks for monitoring

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not able to add disks for monitoring

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
adviserlogic
Posts: 3
Joined: Fri Jul 26, 2019 2:52 am

Re: Not able to add disks for monitoring

Post by adviserlogic »

Thanks my issue has been resolved now.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not able to add disks for monitoring

Post by lmiltchev »

Great! I will be closing this topic now. If you have any further questions/issues, please start a new thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked