Page 2 of 3

Re: Apply Configuration / Restart not working

Posted: Mon Nov 22, 2010 12:39 pm
by mguthrie
Can you run the following commands from a shell and send us the output in the two text files?

Code: Select all

/usr/local/nagiosxi/scripts/reset_config_perms | tee output1.txt
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh | tee output2.txt

Re: Apply Configuration / Restart not working

Posted: Mon Nov 22, 2010 3:40 pm
by m_OO_m
not sure, there will be some useful info...

Re: Apply Configuration / Restart not working

Posted: Tue Nov 23, 2010 11:13 am
by mguthrie
Yeah there doesn't appear to be anything going wrong in those particular scripts. Based on what you found in your apache log I'm wondering if there's something going wrong with the php script that's giving error output. Is it sending that output to the apache error log every time you attempt to Apply the Configuration?

Can I verify that you said that it works to use the Write Config Tool to manually write out the files and restart Nagios, but it does not work to use the main "Apply Configuration" button/link?

Re: Apply Configuration / Restart not working

Posted: Tue Nov 23, 2010 2:05 pm
by m_OO_m
ok, step by step:

(1) logged into Config Manager
(2) Changed service description within configuration AP 1.cfg => Out of Sync
(3) ll AP\ 1.cfg
-rw-rw-r-- 1 apache nagios 773 Nov 22 07:48 AP 1.cfg
(4) Apply
(5) OK
(6) Back to Services
(7) the changed service is still out of sync
(8) ll AP\ 1.cfg
-rw-rw-r-- 1 apache nagios 773 Nov 22 07:48 AP 1.cfg
(9) /var/log/httpd/error_log:

Code: Select all

[Tue Nov 23 19:58:54 2010] [error] [client 192.168.121.9] PHP Warning:  fileowner() [<a href='function.fileowner'>function.fileowner</a>]: stat failed for reset_config_perms in /usr/local/nagiosxi/html/includes/components/nagiosql/nagiosql.inc.php on line 91, referer: http://192.168.29.23/nagiosql/admin/services.php
[Tue Nov 23 19:58:54 2010] [error] [client 192.168.121.9] PHP Warning:  fileowner() [<a href='function.fileowner'>function.fileowner</a>]: stat failed for reset_config_perms.sh in /usr/local/nagiosxi/html/includes/components/nagiosql/nagiosql.inc.php on line 91, referer: http://192.168.29.23/nagiosql/admin/services.php
(10) Writing Data using Tools / Write Config Data => OK, Restart Nagios OK
(11) ll AP\ 1.cfg
-rw-r--r-- 1 apache nagios 774 Nov 23 20:02 AP 1.cfg
(12) the changed service is synced

Re: Apply Configuration / Restart not working

Posted: Tue Nov 23, 2010 5:14 pm
by mguthrie
I'm going to have our lead developer look at this and see if it's a bug in the script or if it's an issue that's localized to your installation.

Re: Apply Configuration / Restart not working

Posted: Wed Nov 24, 2010 1:22 pm
by m_OO_m
please keep in mind, that we used the provided VM-Appliance as starting point. We installed XI many times, and every time we've got this error.

Re: Apply Configuration / Restart not working

Posted: Wed Nov 24, 2010 2:06 pm
by mguthrie
Would you be open to a remote session? We would need a the browser logged into XI and the Core Config Manager, as well as shell/putty access to the XI server. We'll send an invitation at a time that works for both of us if that's an option for you. We're not able to recreate this on our end and we'd also like to get you up and running with XI.

Re: Apply Configuration / Restart not working

Posted: Thu Nov 25, 2010 4:15 am
by m_OO_m
we can arrange that via screen shareing like teamviewer, if you like. The only problem is, that we are in different time zones. We have now 10:15 am. What time is suitable for you?

Re: Apply Configuration / Restart not working

Posted: Fri Nov 26, 2010 12:27 pm
by mguthrie
We're in US CST. I won't be able to get to this until early next week, probably Monday afternoon. We have a remote service that we typically use unless you have a preference for your own service. I'll send you a PM next week and we'll set up a time.

Re: Apply Configuration / Restart not working

Posted: Thu Dec 02, 2010 6:00 am
by m_OO_m
so...?