Page 1 of 1

Apply configuration hanging

Posted: Thu Jan 05, 2012 4:41 pm
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.

Re: Apply configuration hanging

Posted: Thu Jan 05, 2012 5:51 pm
by lmiltchev
Can you click on the Admin menu and post a screenshot of this page?

Re: Apply configuration hanging

Posted: Sat Jan 21, 2012 3:14 am
by andaks
I have the same trouble, and here is screenshot.
I think this is not normal.

Re: Apply configuration hanging

Posted: Sat Jan 21, 2012 9:20 am
by scottwilkerson
This could happen if the nagios user account is expired.

Run this and report back

Code: Select all

chage -l nagios

Re: Apply configuration hanging

Posted: Mon Jan 23, 2012 10:26 am
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.

Re: Apply configuration hanging

Posted: Mon Jan 23, 2012 10:44 pm
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.