This is a cache of https://support.nagios.com/kb/article/nagios-core-nagios-did-not-exit-in-a-timely-manner-172.html. It is a snapshot of the page at 2025-05-14T00:01:11.385+0000.
Nagios Core - Nagios did not e<strong>xi</strong>t in a timely manner
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/



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!

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 - MSSQL Wizards - Adaptive Server connection failed
Viewed 12004 times since Thu, Aug 3, 2017
Nagios xi - Configuration Verification Failed
Viewed 19871 times since Mon, Jan 25, 2016
Nagios xi - HTTP 500 Error / PHP Parse error - Unexpected $end
Viewed 7001 times since Mon, Jan 25, 2016
Nagios xi - MySQL/MariaDB - Max Connections
Viewed 73637 times since Thu, Jun 2, 2016
Nagios xi - Scheduled Backup Log Level
Viewed 5966 times since Tue, Apr 18, 2017
Nagios xi - Unable To Login Using Two Factor Authentication
Viewed 9238 times since Tue, Apr 10, 2018
Nagios xi - Common Upgrade Failures And Solutions
Viewed 14561 times since Thu, Jun 29, 2017
Nagios xi - Configuration Applies, No Changes Take Place
Viewed 8682 times since Tue, Jan 27, 2015
Nagios xi - Oracle Services Critical After Nagios xi Upgrade
Viewed 6468 times since Wed, Jan 27, 2016
How To Clear Solaris Service Maintenance Status
Viewed 31914 times since Mon, Mar 6, 2017