Apply configuration seems to loop

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Apply configuration seems to loop

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Apply configuration seems to loop

Post by abrist »

What version of XI are you running? Some of the potential causes for this issue were resolved in 2014.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Re: Apply configuration seems to loop

Post by paul.jobb »

The version on that server is at
Nagios XI 2012R1.4
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Apply configuration seems to loop

Post 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.
Former Nagios employee
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Apply configuration seems to loop

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Re: Apply configuration seems to loop

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Apply configuration seems to loop

Post 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.
Former Nagios employee
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Re: Apply configuration seems to loop

Post by paul.jobb »

still 2012, it has been running along pretty good so haven't really seen the need to upgrade to this point.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Apply configuration seems to loop

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Re: Apply configuration seems to loop

Post 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
Locked