Does NCPA 2.1.8 upgrade change permissions of "/usr/local/ncpa/var"?
We recently started upgrading all agents to 2.1.8 and if not all but most of the agents are not coming up any more.
Here is the error when we try to start the agent and how we are able to fix it. I am trying to understand is this an expected behavior?
Code: Select all
[root@server1 root] # service ncpa_listener start
Starting NCPA Listener: 2019-08-23 10:12:35,842 14965 ERROR failed to start due to an exception
Traceback (most recent call last):
File "/root/ncpa/agent/ncpadaemon.py", line 181, in start
File "/root/ncpa/agent/ncpadaemon.py", line 358, in check_pid_writable
SystemExit: unable to write to pidfile /usr/local/ncpa/var/ncpa_listener.pid
unable to write to pidfile /usr/local/ncpa/var/ncpa_listener.pid
[FAILED]
[root@server1 root] # chown -R nagios /usr/local/ncpa/var
[root@server1 root] # service ncpa_listener start
Starting NCPA Listener: [ OK ]