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 » 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!

1.44 (9)
Article Rating (9 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 - ERROR: unable to open include file: conf.d/*.cfg
Viewed 11340 times since Sun, May 29, 2016
Nagios XI - Uploaded plugin returns "/bin/bash^M: bad interpreter: No such file or directory"
Viewed 10451 times since Thu, Feb 25, 2016
Nagios XI - Modifying The Contents Of /usr/local/nagios/etc
Viewed 9910 times since Tue, Jan 26, 2016
Nagios XI - Oracle Services Critical After Nagios XI Upgrade
Viewed 8144 times since Wed, Jan 27, 2016
How To Clear Solaris Service Maintenance Status
Viewed 37823 times since Mon, Mar 6, 2017
Disabling Port 113 IDENT Requests
Viewed 8272 times since Tue, Mar 12, 2019
Nagios XI - Status Information Cut Off At 256 Characters
Viewed 10319 times since Thu, Feb 25, 2016
Upgrading to NDO 3 after having been downgraded in newer versions of Nagios XI
Viewed 6152 times since Fri, Jan 15, 2021
Installation errors on customized corporate builds of CentOS or RHEL
Viewed 16824 times since Tue, Jan 26, 2016
Nagios XI - How To Delete A Data Source From An RRD File
Viewed 16723 times since Wed, Apr 27, 2016