Home » Categories » Multiple Categories

Nagios Core - Nagios did not exit in a timely manner

Problem Description

In larger deployments of nagios, stopping or restarting the nagios service may result in the error:

Nagios did not exit in a timely manner

This is due to many factors in large deployments, but basically it is just a timeout issue.

 

Resolving The Problem

You can update the nagios init script to increase how long the script is allowed to run for.

Edit the file of /etc/init.d/nagios and find this line:

for i in 1 2 3 4 5 6 7 8 9 10 ; do

 Change it to:

for i in {1..90} ; do

 

This changes the timeout to 90 seconds, increase to a larger number as required.

 
NOTE

This change will be overwritten each time an upgrade of Nagios XI or Nagios Core occurs, you will need to re-modify after an upgrade.

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

5 (1)
Article Rating (1 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
Nagios XI - Problems with $ Signs in the Check Command
Viewed 3158 times since Tue, Jan 26, 2016
Web Browser Reports 330 Error Content Encoding
Viewed 1892 times since Tue, Mar 7, 2017
How To Clear Solaris Service Maintenance Status
Viewed 12981 times since Mon, Mar 6, 2017
Nagios XI - Login Screen Keeps Redirecting To Itself
Viewed 3070 times since Wed, Jan 27, 2016
Nagios XI - mysql_error out of range value for column
Viewed 2435 times since Tue, Aug 14, 2018
Nagios XI - Installing XI Fails To Install Dependency pymssql
Viewed 2471 times since Mon, Oct 17, 2016
Nagios XI - MK Livestatus Problems With Mod-Gearman
Viewed 2128 times since Thu, Feb 25, 2016
Nagios XI - Installing Latest SourceGuardian Loaders
Viewed 2399 times since Mon, Jun 18, 2018
Nagios XI - MySQL/MariaDB - Max Connections
Viewed 15373 times since Thu, Jun 2, 2016
Nagios XI - Defining Global Environment Variables
Viewed 4081 times since Thu, Mar 17, 2016