Page 1 of 1

Apply configuration using GUI just hangs

Posted: Fri Nov 16, 2012 1:59 am
by bdorairajan
Hi Group, Installed the lastest version fo NagiosXI 2012 1.2. When I try to apply the configuraion from the url it just goes on and on as if it is in a loop. never finishes. Tried the option in the support form of editing the php.ini for memory values. But still did not help. But commandline apply of config works so it is only the gui one. So i check the httpd log and found the following error message in error.log
"[Fri Nov 16 17:42:00 2012] [error] [client 10.56.31.35] PHP Warning: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: /usr/local/nagiosxi/tmp/http:__labs.nagios.com_feed.xml:1: parser error : Document is empty
in /usr/local/nagiosxi/html/includes/utils-rss.inc.php on line 19, referer: http://clnagd2/nagiosxi//includes/page- ... splash.php

[Fri Nov 16 17:42:00 2012] [error] [client 10.56.31.35] PHP Warning: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: in /usr/local/nagiosxi/html/includes/utils-rss.inc.php on line 19, referer: http://clnagd2/nagiosxi//includes/page- ... splash.php"

Also in access.log , i can see continous entries every 1 second ,
"10.56.31.35 - - [16/Nov/2012:17:58:25 +1100] "GET /nagiosxi/ajaxhelper.php?cmd=getcommandstatus&opts=41&nsp=6b513ff4f0afe8f32bfbcfffdd0cf9eb HTTP/1.1" 200 175 "http://clnagd2/nagiosxi//includes/compo ... md=confirm" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; MS-RTC LM 8)"
127.0.0.1 - - [16/Nov/2012:17:58:25 +1100] "POST /nagiosxi/backend/ HTTP/1.1" 200 665 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"

Any idea how to resolve this.

Regards,
Balaji

Re: Apply configuration using GUI just hangs

Posted: Fri Nov 16, 2012 8:35 am
by scottwilkerson
This is likely a php max_execution_time error, we have a fix outlined here
http://support.nagios.com/wiki/index.ph ... _Completes

Re: Apply configuration using GUI just hangs

Posted: Sun Nov 18, 2012 4:06 am
by bdorairajan
Hi Scott,

Thankyou for the reply . I have already tried that option but still it runs without any results...

Regards,
Balaji

Re: Apply configuration using GUI just hangs

Posted: Mon Nov 19, 2012 12:04 pm
by scottwilkerson
Is crond running

Code: Select all

service crond status

Re: Apply configuration using GUI just hangs

Posted: Mon Nov 26, 2012 9:16 pm
by nagiostest
Service crond status
crond is running

Re: Apply configuration using GUI just hangs

Posted: Tue Nov 27, 2012 10:55 am
by scottwilkerson
Please run the following and post the results

Code: Select all

tail -n 40 /var/log/cron

Re: Apply configuration using GUI just hangs

Posted: Tue Nov 27, 2012 8:15 pm
by nagiostest
scottwilkerson wrote:Please run the following and post the results

Code: Select all

tail -n 40 /var/log/cron

Re: Apply configuration using GUI just hangs

Posted: Tue Nov 27, 2012 8:18 pm
by scottwilkerson
Ok, this looks normal, can I have you run the following from the console and then while it is running Apply Configuration in the Web UI

Code: Select all

cd /tmp
tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> cmd.txt
Then attach cmd.txt to your next post