NCPA Agent - Service fails to start with error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

NCPA Agent - Service fails to start with error

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NCPA Agent - Service fails to start with error

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NCPA Agent - Service fails to start with error

Post 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
Locked