This KB article applies to the following error message when starting Nagios Core:
ERROR: Could not create or update '/usr/local/nagios/var/nagios.configtest'
This problem occurs when the nagios user account does not have a user shell, typically when nologin is used in the passwd file:
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:
Bash shell defined:
Once you have updated the passwd file you will be able to successfully start the nagios service.
For any support related questions please visit the Nagios Support Forums at:
Article ID: 760
Created On: Mon, Oct 16, 2017 at 1:28 AM
Last Updated On: Mon, Oct 16, 2017 at 1:28 AM
Authored by: tlea
Online URL: https://support.nagios.com/kb/article/nagios-core-error-could-not-create-or-update-nagios-configtest-760.html