启动 nagios 服务时 nagios 核心问题版本 4.3.4

nagios core issue version 4.3.4 while starting nagios service

我收到错误消息:启动 nagios:ERROR:启动 nagios 服务时无法创建或更新“/usr/local/nagios/var/nagios.configtest” 我已授予 read/write/exec 权限 /usr/local/nagios .另外,当我执行配置测试时,它已成功通过。

参考: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