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 - Can’t Log Into The Web Interface
Viewed 63844 times since Tue, Jan 27, 2015
Nagios XI - Configuration Applies, but still get "Configuration File Is Out Of Date" Error
Viewed 5386 times since Tue, Jan 26, 2016
Nagios XI - Warning: Duplicate definition found for contact ’xi_default_contact’
Viewed 6673 times since Tue, Jan 26, 2016
Nagios XI - Configuration Applies, No Changes Take Place
Viewed 8672 times since Tue, Jan 27, 2015
Nagios XI - MK Livestatus Problems With Mod-Gearman
Viewed 6098 times since Thu, Feb 25, 2016
Nagios XI - ERROR: unable to open include file: /etc/mrtg/conf.d/xxxxxxx.cfg
Viewed 8457 times since Wed, Jun 1, 2016
Nagios XI - Upgrade errors - root.crontab.orig: cannot overwrite existing file
Viewed 4756 times since Tue, Jan 26, 2016
Nagios XI - Empty Screen for Wizard, Component, Dashlet
Viewed 8061 times since Wed, Jan 27, 2016
Nagios XI - Running Out Of Disk Space On The Nagios XI VM
Viewed 23950 times since Tue, Jan 27, 2015
API changes in Nagios XI 5.7
Viewed 4084 times since Tue, Feb 23, 2021