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 XI - Scheduled Backup Log Level
Viewed 396 times since Tue, Apr 18, 2017
Nagios XI - Crashed Database Tables
Viewed 2769 times since Tue, Jan 27, 2015
Nagios XI - How To Use CA Certificates With check_ldaps Plugin
Viewed 623 times since Tue, Jul 26, 2016
Nagios XI - Uploaded plugin returns "/bin/bash^M: bad interpreter: No such file or directory"
Viewed 579 times since Thu, Feb 25, 2016
Nagios XI - Installing XI Fails To Install Dependency pymssql
Viewed 537 times since Mon, Oct 17, 2016
NRPE - Agent and Plugin Explained
Viewed 5889 times since Fri, Jul 14, 2017
Nagios XI - Configuration Applies, No Changes Take Place
Viewed 543 times since Tue, Jan 27, 2015
Nagios XI - Oracle Services Critical After Nagios XI Upgrade
Viewed 360 times since Wed, Jan 27, 2016
Nagios XI - Optimizing The PHP Settings File
Viewed 969 times since Thu, Jul 13, 2017
Nagios XI - Notification Problems
Viewed 1905 times since Tue, Jan 27, 2015