| Home »
Categories
» Products » Nagios Core » Troubleshooting » Common Problems |
Nagios Core - ERROR: Could not create or update nagios.configtest |
|
Article Number: 760 | Rating: Unrated | Last Updated by tlea on Mon, Oct 16, 2017 at 1:28 AM
|
Problem Description
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'
Explanation
This problem occurs when the nagios user account does not have a user shell, typically when nologin is used in the passwd file:
nagios:x:1001:1001::/home/nagios:/usr/sbin/nologin
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.
Final Thoughts
For any support related questions please visit the Nagios Support Forums at:
http://support.nagios.com/forum/
Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.
Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!
|
Posted by: tlea on Mon, Oct 16, 2017 at 1:28 AM. This article has been viewed 8844 times. Filed Under: Common Problems |
|
Have a question? Try our Forums! | Give Feedback |
0 (0)
Article Rating (No Votes)
Rate this article
|
| |
|
Attachments
There are no attachments for this article.
| Related Articles 
Pages Not Displaying Correctly
Viewed 9613 times since Mon, Jan 25, 2016
Nagios Core - Failed to register iobroker
Viewed 8068 times since Wed, Sep 20, 2017
|
|