Page 1 of 2
Apply Configuration Page Stalls Out, Never Completes
Posted: Wed Nov 06, 2013 11:01 am
by Bionic___
As the title says any configuration attempt will not finish. I am still trying to do the initial configuration. So far Nagios XI only monitoring the localhost.
I have looked at the FAQ on this issue and cold booted the machine. I then completed the recommended configuration changes on /etc/php.ini and restarted.
First, I doubled the values and restarted; same result. Then I trippled the value and restarted; same result.
Installed on a clean brand new machine.
Nagios XI Version : 2012R2.5
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Any suggestions?
Re: Apply Configuration Page Stalls Out, Never Completes
Posted: Wed Nov 06, 2013 12:10 pm
by abrist
What browsers have you tried?
Do a running tail on the apache error log, try to apply configuration, wait a few minutes, kill the tail and post the output of the tail:
Additionally, follow the steps in the faq below and post the cmd.txt file:
http://support.nagios.com/wiki/index.ph ... n_Problems
Re: Apply Configuration Page Stalls Out, Never Completes
Posted: Wed Nov 06, 2013 1:59 pm
by Bionic___
Already tried the recommendations in that post
running tail -f /var/log/httpd/error_log resulted in:
tail: cannot open `/var/log/httpd/error_log' for reading: No such file or directory
cmd.txt contains:
tail: cannot open `/usr/local/nagiosxi/var/cmdsubsys.log' for reading: No such file or directory
tail: no files remaining
Re: Apply Configuration Page Stalls Out, Never Completes
Posted: Wed Nov 06, 2013 2:20 pm
by scottwilkerson
Can you post the output of
Re: Apply Configuration Page Stalls Out, Never Completes
Posted: Wed Nov 06, 2013 2:36 pm
by Bionic___
The output was
total 24
drwxr-xr-x 4 root root 4096 Oct 30 09:44 .
drwxr-xr-x 10 root root 4096 Nov 4 07:27 ..
drwsrwsr-x 2 apache nagios 4096 Nov 4 07:22 components
drwxr-xr-x 2 root root 4096 Nov 6 13:22 subsys
-rwxr-xr-x 1 root root 790 Oct 30 09:44 xi-sys.cfg
-rwxr-xr-x 1 root root 202 Oct 30 10:18 xiversion
Good news, the second time i ran the reconfigure script it worked and the hosts were added. I am now in the process of trying from the web interface to see if it completes.
Re: Apply Configuration Page Stalls Out, Never Completes
Posted: Wed Nov 06, 2013 2:41 pm
by scottwilkerson
The permissions on this directory are not right... and it would be hard to say what other item are wrong, but a good start would be to run
Code: Select all
chown nagios.nagios /usr/local/nagiosxi
chown -R nagios.nagios /usr/local/nagiosxi/var
chown -R nagios.nagios /usr/local/nagiosxi/cron
chown -R nagios.nagios /usr/local/nagiosxi/nom
chown -R nagios.nagios /usr/local/nagiosxi/tmp
Re: Apply Configuration Page Stalls Out, Never Completes
Posted: Wed Nov 06, 2013 3:13 pm
by Bionic___
It looks like any reconfigure from the web interface does not work.
If I manually do the reconfigure_nagios.sh then it works.
Re: Apply Configuration Page Stalls Out, Never Completes
Posted: Wed Nov 06, 2013 3:31 pm
by abrist
Do you push configurations or permission to this system with chef/puppet? (permissions, /etc/passwd and shadow, /etc/sudoers, etc) ??
Re: Apply Configuration Page Stalls Out, Never Completes
Posted: Wed Nov 06, 2013 3:36 pm
by Bionic___
No, everything so far has been done in the installed Nagios XI interface, nothing else
Re: Apply Configuration Page Stalls Out, Never Completes
Posted: Wed Nov 06, 2013 3:36 pm
by scottwilkerson
Ok, please send the output of the following
Code: Select all
ls -la /usr/local/nagiosxi/scripts
Thanks
You will likely need to run
Code: Select all
chown nagios.nagios /usr/local/nagiosxi/scripts/*
chown root:nagios /usr/local/nagiosxi/scripts/reset_config_perms
chown root:nagios /usr/local/nagiosxi/scripts/reset_config_perms.sh
chmod u+s /usr/local/nagiosxi/scripts/reset_config_perms
chmod u+s /usr/local/nagiosxi/scripts/reset_config_perms.sh