Apply configuration is taking long time and not completing
Apply configuration is taking long time and not completing
Hi
I tried apply configuration on one of our nagios instances and it is taking so much of time and not completing. Couldn't identify the issue. I found /usr/local filesystem was full and addded more space. But still the same issue. Attached the snapshot for the same.
Thanks,
Deepan.
I tried apply configuration on one of our nagios instances and it is taking so much of time and not completing. Couldn't identify the issue. I found /usr/local filesystem was full and addded more space. But still the same issue. Attached the snapshot for the same.
Thanks,
Deepan.
You do not have the required permissions to view the files attached to this post.
Re: Apply configuration is taking long time and not completi
First off, verify that you have enough space on the system:
After running out of disk space, quite often there are crashed tables in the database. Run the database repair script:
then check to see if you still have crashed tables (error messages in the log):
or
Sometimes you need to run the repair script more than once in order to fix all of the errors.
There are few more things that you need to check when apply configuration never completes. They are described in our KB article below:
https://support.nagios.com/kb/article/n ... es-34.html
I suspect that you need to increase the resource limits in the php.ini file, but it could be some other reason for failing, .e.g. old reconfigure_nagios.lock, sudoers, etc.
Hope this helps.
Code: Select all
df -hCode: Select all
/usr/local/nagiosxi/scripts/repair_databases.shCode: Select all
tail /var/log/mysqld.logCode: Select all
tail /var/log/mariadb/mariadb.logThere are few more things that you need to check when apply configuration never completes. They are described in our KB article below:
https://support.nagios.com/kb/article/n ... es-34.html
I suspect that you need to increase the resource limits in the php.ini file, but it could be some other reason for failing, .e.g. old reconfigure_nagios.lock, sudoers, etc.
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Apply configuration is taking long time and not completi
I also wanna mention here that eventhandler.log is generating on a rapid pace and getting filled immediately after deleting the log. Total space for /usr/local/ is 4GB and in just 10 mins eventhandler.log is getting filled and 50% space has been occupied already. Attached the snapshot.
You do not have the required permissions to view the files attached to this post.
Re: Apply configuration is taking long time and not completi
In the next 10 mins /usr/local is full. since eventhandler.log is full and the event manager went down. Attached the snapshot.
You do not have the required permissions to view the files attached to this post.
Re: Apply configuration is taking long time and not completi
Have you performed any of the steps I recommended in my previous post?
Run the following command and show the output:
Also run:
and upload the eventhandler.log file that was generated in the /tmp directory from running the above command. We would need to review the file to find out why so many events are firing.
Run the following command and show the output:
Code: Select all
cat /etc/cron.d/nagiosxiCode: Select all
tail -2000 /usr/local/nagiosxi/var/event_handler.log > /tmp/eventhandler.logBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Apply configuration is taking long time and not completi
yes i had performed the previous steps. We are still seeing the same issue. I will share the eventhandler.log data here shortly.
Re: Apply configuration is taking long time and not completi
I have attached the information that you have asked for
You do not have the required permissions to view the files attached to this post.
Re: Apply configuration is taking long time and not completi
The eventhandler.log has some "old" entries, but nothing recent. The events are not being processed for some reason. Can you PM me your latest profile?
Admin > System Profile > Download Profile
Admin > System Profile > Download Profile
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Apply configuration is taking long time and not completi
Tried downloading the profile. and its throwing up error.
You do not have the required permissions to view the files attached to this post.
Re: Apply configuration is taking long time and not completi
Hmm, try resolving the issue by following the KB article below:
https://support.nagios.com/kb/article/n ... d-533.html
https://support.nagios.com/kb/article/n ... d-533.html
Be sure to check out our Knowledgebase for helpful articles and solutions!