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 Core - Nagios service does not start - Error processing object config files!
Viewed 21736 times since Thu, Jan 21, 2016
Nagios XI - How To Delete A Data Source From An RRD File
Viewed 7050 times since Wed, Apr 27, 2016
Nagios XI - Unable to Delete Host
Viewed 9270 times since Tue, Dec 16, 2014
Nagios XI - Common Upgrade Failures And Solutions
Viewed 5704 times since Thu, Jun 29, 2017
OpenSSL causes issue with check_nrpe plugin with NSClient++
Viewed 934 times since Fri, Apr 30, 2021
Nagios XI - Missing localhost Alerts
Viewed 3983 times since Sun, Nov 5, 2017
Nagios XI - Resolving "Cannot connect to database" Error - Core Config Manager
Viewed 4128 times since Mon, Jan 25, 2016
Nagios XI - Notifications Not Sending In XI 5.3.0
Viewed 2642 times since Tue, Oct 4, 2016
Nagios XI - HTTP 500 Error / PHP Parse error - Unexpected $end
Viewed 3750 times since Mon, Jan 25, 2016
Nagios XI - Core 4 Load Spikes on 1.75 and 7 Hour Intervals
Viewed 2393 times since Mon, Jan 25, 2016