Apply configuration hanging

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Apply configuration hanging

Post by GldRush98 »

And if I manually run the reconfigure_nagios.sh script:

Code: Select all

[root@localhost scripts]# ./reconfigure_nagios.sh
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=ijec4i' -O nagiosql.login--2012-01-05 15:31:53--  http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/admin.php [following]
--2012-01-05 15:31:54--  http://localhost/nagiosql/admin.php
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: `nagiosql.login'

100%[====================================================================================================>] 5,286       --.-K/s   in 0s

2012-01-05 15:31:54 (466 MB/s) - `nagiosql.login' saved [5286/5286]

LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosql/admin/import.php
Array
(
)
SETUID ROOT OK
RESETTING PERMS
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=ijec4i' -O nagiosql.login--2012-01-05 15:31:58--  http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/admin.php [following]
--2012-01-05 15:31:58--  http://localhost/nagiosql/admin.php
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: `nagiosql.login'

100%[====================================================================================================>] 5,286       --.-K/s   in 0s

2012-01-05 15:31:58 (491 MB/s) - `nagiosql.login' saved [5286/5286]

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
--2012-01-05 15:31:58--  http://localhost/nagiosql/admin/verify.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response...
And never goes past awaiting response... It will just site there until the end of days.

I've got the php resource limits at:
max_execution_time = 60
max_input_time = 60
memory_limit = 256M

I tried doubling them just to see if it would help, and no difference. Still hangs at the "Waiting for configuration verification......." with infinite ................'s

If you need some other information, just let me know and I'll pull it.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Apply configuration hanging

Post by lmiltchev »

Can you click on the Admin menu and post a screenshot of this page?
Be sure to check out our Knowledgebase for helpful articles and solutions!
andaks
Posts: 32
Joined: Thu May 19, 2011 9:47 am

Re: Apply configuration hanging

Post by andaks »

I have the same trouble, and here is screenshot.
I think this is not normal.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Apply configuration hanging

Post by scottwilkerson »

This could happen if the nagios user account is expired.

Run this and report back

Code: Select all

chage -l nagios
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Apply configuration hanging

Post by mguthrie »

I would also suggest taking a look at the cron settings for the nagios user.

Make sure the cron daemon is running:

Code: Select all

service crond restart
And then also check and make sure that something didn't happen to the nagios uer's crontab.

Code: Select all

su nagios -c 'crontab -e'
There should be several php scripts that run on a regular basis.
andaks
Posts: 32
Joined: Thu May 19, 2011 9:47 am

Re: Apply configuration hanging

Post by andaks »

I had some suspicions about this problem.
It was because of backup script from previos nagios machine.

I had to reinstall el6 again, install nagios step by step, after that everything seems to be fine, but without backup from previos nagios.
Locked