Apply Configuration / Restart not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Apply Configuration / Restart not working

Post 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
m_OO_m
Posts: 23
Joined: Mon Oct 18, 2010 10:21 am

Re: Apply Configuration / Restart not working

Post by m_OO_m »

not sure, there will be some useful info...
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Apply Configuration / Restart not working

Post 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?
m_OO_m
Posts: 23
Joined: Mon Oct 18, 2010 10:21 am

Re: Apply Configuration / Restart not working

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Apply Configuration / Restart not working

Post 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.
m_OO_m
Posts: 23
Joined: Mon Oct 18, 2010 10:21 am

Re: Apply Configuration / Restart not working

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Apply Configuration / Restart not working

Post 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.
m_OO_m
Posts: 23
Joined: Mon Oct 18, 2010 10:21 am

Re: Apply Configuration / Restart not working

Post 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?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Apply Configuration / Restart not working

Post 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.
m_OO_m
Posts: 23
Joined: Mon Oct 18, 2010 10:21 am

Re: Apply Configuration / Restart not working

Post by m_OO_m »

so...?
Locked