Can not open / overwrite the configuration file (check the p

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
P3_25
Posts: 35
Joined: Mon Jan 25, 2016 8:44 pm

Can not open / overwrite the configuration file (check the p

Post by P3_25 »

Hello.

Sorry in clumsy English.

From the predecessor of took over the Nagios and NagiosQL
Please tell me because I do not know at all.

To change the setting NagiosQL When you click the Do it of Write monitorring data
Can not open / overwrite the configuration file (check the permissions)! It will be displayed.

Perhaps I rights problems but not in trouble in any information retired predecessor is not.

Any file which authority do you may be given to.

By the way, the current authority
/ Usr / local / nagios / etc / hosts the group nagios [501] owner apache [48]
.cfg file under the hosts group is there is a thing of nagios [501] owner root [0] ones and the group of nagios [501] owner (apache [48]).

/ Usr / local / nagios / etc / hosts the group nagios [501] owner apache [48]
.cfg file under the hosts are and groups nagios [501] those of the owner root [0]
Group there is a thing of nagios [501] owner (apache [48]).

/ Usr / local / nagios / etc / services is the group nagios [501] owner apache [48]
.cfg file under the services group is there is a thing of nagios [501] owner root [0]
ones and the group of nagios [501] owner (apache [48]).

hostgroups.cfg and servicegroups.cfg and hosttemplates.cfg and servicetemplates.cfg the group nagios [501] owner apache [48]
It has become a.

We will let you check please.
Attachments
NagiosQLログ.png
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Can not open / overwrite the configuration file (check t

Post by rkennedy »

What is the result of this command?

Code: Select all

ls -l /usr/local/nagios/etc/
ls -l /usr/local/nagios/etc/hosts/
ls -l /usr/local/nagios/etc/services/
Former Nagios Employee
P3_25
Posts: 35
Joined: Mon Jan 25, 2016 8:44 pm

Re: Can not open / overwrite the configuration file (check t

Post by P3_25 »

Hello.

It sends the result of executing the command .
Please check.
Attachments
Execution result.txt
(68.2 KiB) Downloaded 602 times
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Can not open / overwrite the configuration file (check t

Post by rkennedy »

I don't think the permissions look right in these two folders -

Code: Select all

/usr/local/nagios/etc/hosts/
/usr/local/nagios/etc/services/
Can you try to correct the permissions? Judging from your environment, I think they need to be apache:nagios. (this is usually nagios:nagios)

Code: Select all

chown -R apache:nagios /usr/local/nagios/etc/hosts/
chown -R apache:nagios /usr/local/nagios/etc/services/
Former Nagios Employee
P3_25
Posts: 35
Joined: Mon Jan 25, 2016 8:44 pm

Re: Can not open / overwrite the configuration file (check t

Post by P3_25 »

Hello.

It is possible to change the access rights .
However , what it does not break the system by changing the access rights .
Specifications predecessor retired , it is anxious to implement because there are still any information such as the settings .

Please tell me the risks and workarounds so good in the
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Can not open / overwrite the configuration file (check t

Post by rkennedy »

Without taking a look at your system, and seeing exactly how things are setup - I cannot make a decision regarding this. It does seem that your system is modified.

With our standard Nagios Core install, this is how things operate though for permissions.
Former Nagios Employee
P3_25
Posts: 35
Joined: Mon Jan 25, 2016 8:44 pm

Re: Can not open / overwrite the configuration file (check t

Post by P3_25 »

Hello.

Message of change the access rights of the pointed out gotten place (Can not open / overwrite the configuration file (check t...) has confirmed that it will not be displayed .

Thank you for your response.
bwallace
Posts: 1146
Joined: Tue Nov 17, 2015 1:57 pm

Re: Can not open / overwrite the configuration file (check t

Post by bwallace »

Thanks for that update, does that mean this issue is resolved?
Be sure to check out the Knowledgebase for helpful articles and solutions!
P3_25
Posts: 35
Joined: Mon Jan 25, 2016 8:44 pm

Re: Can not open / overwrite the configuration file (check t

Post by P3_25 »

Hello.

Okay.
Which means that this problem is resolved .

Thank you for your response.
Locked