NCPA 2.1.8 changing permissions of /usr/local/ncpa/var

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

NCPA 2.1.8 changing permissions of /usr/local/ncpa/var

Post by Sampath.Basireddy »

Hi There,

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  ]
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA 2.1.8 changing permissions of /usr/local/ncpa/var

Post by lmiltchev »

I am trying to understand is this an expected behavior?
No, it is not.

What were the permissions of the "/usr/local/ncpa/var" PRIOR to upgrading the NCPA agent? What is the version of the agent that you upgraded from? What OS/architecture?

How the "old" agent was installed, and how it was upgraded, e.g. via rpm/deb installer or using the Nagios repo?

Have you hardened/modified the server in any way? Is SELinux running?

We will try to recreate the issue in-house, when you get back all of the information that I requested. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked