New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NCPA "no such file or directory" error #523
Comments
Additional note: The services will start with an OS reboot |
In NCPA you can change the types of mountpoints that it should look for. What does the check look like? Are you doing a check on the directory/mountpoint itself? |
I am not doing a check on this mount point. I have this issue during the initial deployment of the agent. It appears to check the filesystems during startup of the services. |
In I'll have to check why it's not properly continuing after the error. |
Ok. Let me give that a shot while you check on the error. Thank you. |
Ok. The mounts are NFS. However, this is already in the exclude_fs_types option. So, I am not sure why it is even looking at these. |
Are you running NCPA as the default nagios user or are you running it as root? It's possible that it is unable to get the info for the mountpoint. Reading the code it shouldn't get to the part that is erroring if the filesystem type is nfs. I've had some issues with Debian 9 and having to run the agent as root in the past due to permissions problems. |
It has been running as Nagios. I will try root and see if there is an impact. |
Ok. The agent is running as root and it is still getting this error on multiple mount points that should be ignored as they are NFS. Traceback (most recent call last): |
These should be ignored, and for some reason it's hitting the exception and not catching it properly so that it doesn't cause issues. I think we can add a fix in for 2.1.7 to stop this. |
I am still having this issue in RHEL for the 2.1.7 agent. |
It will likely still give an error (since it is an error) in the log but it should not stop the agent from running. Certain mountpoints on the system are not accessible to be read for whatever reason. Since I'm unable to make this happen on my system all I could do was catch the |
Ok. It might be a different problem. I get this error when starting the agent on RHEL 6.x. 2019-05-23 11:43:02,010 65904 INFO stopped |
Oh that is a different problem, this may be an issue with Python, is the system running with an ipv6 address only? |
No. It has ipv4 as well. |
Got it to start. I had to change ip = :: to ip = 0.0.0.0 in the ncpa.cfg. |
When either the listener or passive service are trying to load, I receive the follow errors on some net mapped directories. Is there a way to disregard certain mounted filesystems.
ERROR:root:[Errno 2] No such file or directory: (directory name)
Traceback (most recent call last):
File "/root/ncpa/agent/listener/psapi.py", line 186, in get_disk_node
File "/root/ncpa/agent/listener/psapi.py", line 58, in make_mountpoint_nodes
The text was updated successfully, but these errors were encountered: