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!

2 (4)
Article Rating (4 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 - STRICT_TRANS_TABLES
Viewed 10039 times since Thu, Nov 16, 2017
VMWare checks timing out or slow
Viewed 4692 times since Fri, Feb 11, 2022
Nagios XI - 2014 Upgrade Issue - CONFIG ERROR
Viewed 6774 times since Mon, Jan 25, 2016
ERROR: Please add the ’Optional’ channel to your Red Hat systems subscriptions
Viewed 29210 times since Tue, Jan 26, 2016
Installation errors on customized corporate builds of CentOS or RHEL
Viewed 15456 times since Tue, Jan 26, 2016
Nagios Core - Nagios service does not start - Error processing object config files!
Viewed 33482 times since Thu, Jan 21, 2016
Nagios Core - ERROR: Could not create or update nagios.configtest
Viewed 8891 times since Mon, Oct 16, 2017
Nagios XI - Best Practices - NWC15
Viewed 9708 times since Thu, Feb 4, 2016
CCM says unapplied changes exist, but none listed
Viewed 7077 times since Mon, Feb 27, 2017
Nagios XI - Scheduled Backup Log Level
Viewed 6711 times since Tue, Apr 18, 2017