THIS KNOWLEDGE BASE HAS BEEN ARCHIVED AND IS NO LONGER BEING UPDATED
Please visit library.nagios.com/docs for the latest and most up-to-date documentation.
Home » Categories » Products » Nagios Core » Troubleshooting » Common Problems

Nagios Core - ERROR: Could not create or update nagios.configtest

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.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

1 (2)
Article Rating (2 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
SNMP Trap - How To Send A Test Trap
Viewed 249175 times since Fri, Apr 1, 2016
Nagios XI - Last Check Time Not Updating
Viewed 27982 times since Tue, Jan 6, 2015
Nagios XI - How To Use CA Certificates With check_ldaps Plugin
Viewed 16670 times since Tue, Jul 26, 2016
Nagios XI - MK Livestatus Problems With Mod-Gearman
Viewed 8148 times since Thu, Feb 25, 2016
Nagios Core - Nagios service does not start - Error processing object config files!
Viewed 35913 times since Thu, Jan 21, 2016
Nagios XI - Defining Global Environment Variables
Viewed 13646 times since Thu, Mar 17, 2016
How To Clear Solaris Service Maintenance Status
Viewed 38433 times since Mon, Mar 6, 2017
Nagios Core - How to Think with Nagios to Solve Monitoring Problems - NWC14
Viewed 9661 times since Mon, Feb 8, 2016
Web Browser Reports 330 Error Content Encoding
Viewed 10668 times since Tue, Mar 7, 2017
Pages Not Displaying Correctly
Viewed 11069 times since Mon, Jan 25, 2016