2017-10-06 88 views
0

我收到错误:启动nagios:错误:无法创建或更新'/usr/local/nagios/var/nagios.configtest'开始nagios服务时我给出了读/写/ exec权限到/ usr/local/nagios。另外,当我执行配置测试时,它已成功传递。nagios核心问题版本4.3.4,同时开始nagios服务

+0

我忘记meantion一些重要的事实,例如:你的操作系统,你如何安装Nagios的?ATD ... – Rohlik

+0

操作系统:Ubuntu的14.04。已经安装了源代码。有关链接:https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source.html#Ubuntu –

回答

0

裁判:doc-760

Resolution The resolution to this problem is to remove the /usr/sbin/nologin directive from the passwd file, or to define it as a valid shell. The following examples should resolve the problem (depending on your operating system):

No shell defined:

nagios:x:1001:1001::/home/nagios:  

Bash shell defined:

nagios:x:500:500::/home/nagios:/bin/bash

Once you have updated the passwd file you will be able to successfully start the nagios service.

我更新了/ etc/passwd文件的规定和Nagios的启动权的。

最初:

nagios:x:110:116::/var/lib/nagios:/bin/false 

现在:

$ grep nagios /etc/passwd 
nagios:x:110:116::/var/lib/nagios:/bin/bash