Page 1 of 1

NCPA Agent - Service fails to start with error

Posted: Mon Mar 18, 2019 7:47 am
by dbcummings
I have a NCPA agent deployed to RHEL 7.5. Both the listener and pasive services will start with a full OS reboot. However, they can not be started or restarted from the OS. They get an error, "OSError: [Errno 2] No such file or directory:" followed by the directory name. These are mapped network directories for which I have no access or control. Is there a way to get the NCPA to ignore these directories? Or is there another solution as to why this happened?

Re: NCPA Agent - Service fails to start with error

Posted: Mon Mar 18, 2019 4:40 pm
by tgriep
What version of the NCPA agent is loaded on the server?

In the ncpa.cfg file, there are settings for the agent to exclude file system types.
# Excluded file system types removes these fs types from the disk metrics
# (This is mostly only noteable on UNIX systems but also works on Windows if you need it)
# Default: 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

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
If you are not monitoring the mounted file system, adding it to the exclude list may help on the startup of the agent.

Re: NCPA Agent - Service fails to start with error

Posted: Mon Mar 18, 2019 4:48 pm
by ssax
Please run these commands exactly as shown and send me the entire output:
- There's a reason I'm switching between sysv and systemd style in the commands below, it's a very specific bug I'm testing for.

Code: Select all

systemctl status ncpa_listener -l
service ncpa_listener stop
systemctl stop ncpa_listener
service ncpa_listener start
service ncpa_listener status -l
systemctl status ncpa_listener -l
You also don't indicate what you mean by "can not be started or restart from the OS", please answer these questions:
- What commands were you running?
-- Please post the entire commands you ran and their full output for review.

Thank you