Error when starting NCPA client on RHEL 7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jmashburn
Posts: 4
Joined: Tue Aug 06, 2019 3:14 pm

Error when starting NCPA client on RHEL 7

Post 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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Error when starting NCPA client on RHEL 7

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jmashburn
Posts: 4
Joined: Tue Aug 06, 2019 3:14 pm

Re: Error when starting NCPA client on RHEL 7

Post 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)
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Error when starting NCPA client on RHEL 7

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked