Page 1 of 2

Apply configuration seems to loop

Posted: Mon Oct 06, 2014 11:21 am
by paul.jobb
Hi;

Over the past few days my apply configuration appears to be in a loop and never stopping, it will create the files in /usr/local/nagios/etc folder and then start all over again.

LOGIN SUCCESSFUL!
URL: http://localhost/nagiosql/admin/verify.php
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeMonitoring=Go' -O nagiosql.export.monitoring
--2014-10-06 09:42:22-- http://localhost/nagiosql/admin/verify.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Retrying.

--2014-10-06 09:57:23-- (try: 2) http://localhost/nagiosql/admin/verify.php
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Retrying.

--2014-10-06 10:12:25-- (try: 3) http://localhost/nagiosql/admin/verify.php
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... ^C

Re: Apply configuration seems to loop

Posted: Mon Oct 06, 2014 11:33 am
by abrist
What version of XI are you running? Some of the potential causes for this issue were resolved in 2014.

Re: Apply configuration seems to loop

Posted: Mon Oct 06, 2014 11:37 am
by paul.jobb
The version on that server is at
Nagios XI 2012R1.4

Re: Apply configuration seems to loop

Posted: Mon Oct 06, 2014 11:44 am
by tmcdonald
Do you truly mean 2012 or was that a typo for 2014? If you really are on 2012 I would strongly recommend upgrading to the latest 2014R1.5 as there have been numerous improvements in the apply config process since v2012.

Re: Apply configuration seems to loop

Posted: Mon Oct 06, 2014 11:45 am
by abrist
Start a running tail on the httpd error log and then try to apply configuration. Wait a moment and then post the file with the redirected tail output (/tmp/errors.txt):

Code: Select all

tail -f /var/log/httpd/error_log > /tmp/errors.txt

Re: Apply configuration seems to loop

Posted: Mon Oct 06, 2014 12:15 pm
by paul.jobb
[Mon Oct 06 10:39:40 2014] [error] [client 199.215.82.182] File does not exist: /var/www/html/robots.txt
[Mon Oct 06 10:45:02 2014] [error] [client 199.215.67.99] File does not exist: /var/www/html/robots.txt
[Mon Oct 06 10:45:10 2014] [error] [client 199.215.82.182] File does not exist: /var/www/html/robots.txt
[Mon Oct 06 10:50:32 2014] [error] [client 199.215.67.99] File does not exist: /var/www/html/robots.txt
[Mon Oct 06 10:50:40 2014] [error] [client 199.215.82.182] File does not exist: /var/www/html/robots.txt
[Mon Oct 06 10:52:35 2014] [notice] caught SIGTERM, shutting down
[Mon Oct 06 10:52:36 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 06 10:52:36 2014] [notice] Digest: generating secret for digest authentication ...
[Mon Oct 06 10:52:36 2014] [notice] Digest: done
[Mon Oct 06 10:52:36 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
[Mon Oct 06 10:56:01 2014] [error] [client 199.215.67.99] File does not exist: /var/www/html/robots.txt
[Mon Oct 06 10:56:10 2014] [error] [client 199.215.82.182] File does not exist: /var/www/html/robots.txt
[Mon Oct 06 11:01:31 2014] [error] [client 199.215.67.99] File does not exist: /var/www/html/robots.txt
[Mon Oct 06 11:01:40 2014] [error] [client 199.215.82.182] File does not exist: /var/www/html/robots.txt
[Mon Oct 06 11:07:01 2014] [error] [client 199.215.67.99] File does not exist: /var/www/html/robots.txt
[Mon Oct 06 11:07:10 2014] [error] [client 199.215.82.182] File does not exist: /var/www/html/robots.txt
[Mon Oct 06 11:12:31 2014] [error] [client 199.215.67.99] File does not exist: /var/www/html/robots.txt
[Mon Oct 06 11:12:40 2014] [error] [client 199.215.82.182] File does not exist: /var/www/html/robots.txt

Re: Apply configuration seems to loop

Posted: Mon Oct 06, 2014 12:19 pm
by tmcdonald
Did you have an answer for this?
tmcdonald wrote:Do you truly mean 2012 or was that a typo for 2014? If you really are on 2012 I would strongly recommend upgrading to the latest 2014R1.5 as there have been numerous improvements in the apply config process since v2012.

Re: Apply configuration seems to loop

Posted: Mon Oct 06, 2014 2:37 pm
by paul.jobb
still 2012, it has been running along pretty good so haven't really seen the need to upgrade to this point.

Re: Apply configuration seems to loop

Posted: Mon Oct 06, 2014 2:44 pm
by abrist
Ah 2012. What you are seeing is an artifact of large configs in 2012. Clone/snapshot the current server, and test the upgrade in a lab/etc before doing it on prod. You will most definitely want to upgrade though - apply config times were reduced to 10-15 seconds AT MOST in 2014.

Re: Apply configuration seems to loop

Posted: Mon Oct 20, 2014 8:47 am
by paul.jobb
Hi;

I was instructed at the conference to ask for the updated code for mod-gearman that supports the latest nagios xi version.

Thanks,
Paul