NLS: Apply configuration process does not complete

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
mrABB
Posts: 2
Joined: Wed Mar 20, 2019 1:23 pm

NLS: Apply configuration process does not complete

Post by mrABB »

Within the NLS web console:
I am experiencing issues with applying the configuration whenever I have the amount of code that makes the apply configuration process take more than 60 seconds. In my case, it happens when my configuration is about 1014 lines containing about 42861 chars. The configuration verifies okay, but when applying, the “running” status goes on forever. If I make the configuration a few chars shorter, the applying process completes in about 59,9 sec. If I then add a few “#” signs to the configuration, it won’t apply. Again, the apply process spins around forever. Hence, I’m wondering if there could be a bug in your code for the “Apply Configuration” function having something to do with the 60 seconds.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NLS: Apply configuration process does not complete

Post by npolovenko »

Hello, @mrABB. Let's increase the settings in your /etc/php.ini file. Double the memory_limit value, set max_execution_time to 300, max_input_time to 300 as well. Save the file and restart apache with:

Code: Select all

service httpd restart
This KB article is for XI but you can use it a guide for the LS as well.
https://support.nagios.com/kb/article/n ... e-611.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mrABB
Posts: 2
Joined: Wed Mar 20, 2019 1:23 pm

Re: NLS: Apply configuration process does not complete

Post by mrABB »

Hi npolovenko.
Thanks for the tip. Tested changing the values you suggested without any luck. Still the same issue.
Also looked through the guide you referred to:
https://support.nagios.com/kb/article/n ... e-611.html
I do not get any php error messages, hence I don't believe the issue is related to php settings.

Any other suggestions to why the configuration won’t apply?

Running Nagios 2.0.7 on rhel 7.6
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NLS: Apply configuration process does not complete

Post by cdienger »

I'd like to take a look at a configuration that fails. Go to Admin > Global > Global Config > All Files Combined.

Try tailing the Apache logs while it fails:

Code: Select all

tail -f /var/log/httpd/*
The logstash or elasticsearch logs may also have something:

Code: Select all

tail -f /var/log/logstash/logstash.log
tail -f /var/log/elasticsearch/*
Also, it may be useful to run the following while trying to apply configuration

Code: Select all

tail -f /usr/local/nagioslogserver/var/jobs.log
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked