Page 1 of 1

Error when starting NCPA client on RHEL 7

Posted: Mon Nov 04, 2019 4:26 pm
by jmashburn
I am trying to instal the NCPA client on a RHEL 7 machine, and after starting the service it acts like it has started but when checking the log, or looking at systemctl status ncpa_listener you see this:
File "/root/ncpa/agent/ncpadaemon.py" line 358, in check_pid_writeable
SystemExit: unable to write to pidfile /usr/local/ncpa/var/run/ncpa_listener.pid

Looked at the permissions and it has write on the folder, and the folder itself is empty

Created a ncpa_listener.pid as just an empty file, restart the service and it deletes the file and gives the same error

This has happened on multiple RHEL 7 systems, not sure what else to do on it.

Re: Error when starting NCPA client on RHEL 7

Posted: Mon Nov 04, 2019 5:08 pm
by lmiltchev
What is the version of the NCPA agent that you installed on the RHEL 7 machine? How did you install NCPA (by using Nagios repo or via RPM)? Did you install it, while logged in a root user?

Can you show us the ncpa.cfg and the ncpa_listener.log?

Re: Error when starting NCPA client on RHEL 7

Posted: Mon Nov 04, 2019 5:23 pm
by jmashburn
What is the version of the NCPA agent that you installed on the RHEL 7 machine?
ncpa-2.2.0-1.el7.x86_64
How did you install NCPA (by using Nagios repo or via RPM)?
Nagios Repo, using https://repo.nagios.com/nagios/7/nagios ... noarch.rpm
Did you install it, while logged in a root user?
Yes
Can you show us the ncpa.cfg and the ncpa_listener.log?
The .cfg file would be a tad hard, this is for a customer and we can't ssh in, so I have to use VSphere, but the ncpa_listerner.log file says the same thing (basically showing the error with the full traceroute, but the trace doesn't show anymore info since it all falls back to the check_pid_writeable function)

Re: Error when starting NCPA client on RHEL 7

Posted: Mon Nov 04, 2019 5:54 pm
by lmiltchev
We will need to see the ncpa.cfg file in order to troubleshoot the issue.

Also, run the following command on the remote machine:

Code: Select all

ls -lad /usr/local > /tmp/debug; ls -lad /usr/local/ncpa >> /tmp/debug; ls -lR /usr/local/ncpa >> /tmp/debug
then upload the "debug" file that was generated in the "/tmp" directory on the support forum.