Bobcares

Nagios did not exit in a timely manner – Quick fix

by | Nov 8, 2020

The error ‘Nagios did not exit in a timely manner’ occurs while stopping or restarting the Nagios in larger deployments.

Here at Bobcares, we have seen several such Nagios-related errors as part of our Server Management Services for web hosts and online service providers.

Today we’ll take a look at the causes for this error and see the fix.

 

What causes ‘Nagios did not exit in a timely manner’ error to occur

Before we get into the solution part of this error message, let us see what causes this error message.

Normally, you come across this error message while stopping or restarting the Nagios in larger deployments.

This error mainly happens due to the various factors in larger deployments. However, it is just a timeout issue

Sometimes, if any service check that is hung, or rather not returning output, then it will cause Nagios not to exit properly.

 

How we fix the error ‘Nagios did not exit in a timely manner’

Now let us see how our Support Engineers resolve this Nagios error message for our customers.

Since this is just a timeout issue, you can simply update the Nagios init script to increase how long the script is allowed to run.

So, edit the file of /etc/init.d/nagios. Then find the below line.

for i in 1 2 3 4 5 6 7 8 9 10 ; do

Now, change the above line to below one:

for i in {1..90} ; do

The above line changes the timeout to 90 seconds. However, you can increase to a larger number as you require.

As a result, this must fix the issue.

Note: The above changes will be overwritten every time an upgrade of Nagios XI or Nagios Core is done. So you would need to re-modify after an upgrade.

[Need any further assistance in fixing Nagios errors? – We are here to help you]

 

Conclusion

In short, this Nagios error occurs while stopping or restarting the Nagios in larger deployments. Today, we saw the solution our Support Engineers provide to this error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.