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.
Error when starting NCPA client on RHEL 7
Re: Error when starting NCPA client on RHEL 7
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?
Can you show us the ncpa.cfg and the ncpa_listener.log?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Error when starting NCPA client on RHEL 7
ncpa-2.2.0-1.el7.x86_64What is the version of the NCPA agent that you installed on the RHEL 7 machine?
Nagios Repo, using https://repo.nagios.com/nagios/7/nagios ... noarch.rpmHow did you install NCPA (by using Nagios repo or via RPM)?
YesDid you install it, while logged in a root user?
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)Can you show us the ncpa.cfg and the ncpa_listener.log?
Re: Error when starting NCPA client on RHEL 7
We will need to see the ncpa.cfg file in order to troubleshoot the issue.
Also, run the following command on the remote machine:
then upload the "debug" file that was generated in the "/tmp" directory on the support forum.
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
Be sure to check out our Knowledgebase for helpful articles and solutions!