Page 5 of 7

Re: nagiosxi stuck at applying configuration

Posted: Thu Jan 09, 2014 4:10 pm
by abrist
Check the following:
http://support.nagios.com/wiki/index.ph ... _Completes
If the steps above do not resolve your issues, please follow the section of the faq below and post the cmd.txt and reconfig.txt in code wraps:
http://support.nagios.com/wiki/index.ph ... n_Problems

Re: nagiosxi stuck at applying configuration

Posted: Thu Jan 09, 2014 4:10 pm
by nanz28v
how do I restart Nagios service? Or maybe a reboot, to solve the issue?

Re: nagiosxi stuck at applying configuration

Posted: Thu Jan 09, 2014 4:11 pm
by abrist

Code: Select all

service nagios restart

Re: nagiosxi stuck at applying configuration

Posted: Fri Jan 10, 2014 1:53 pm
by nanz28v
I can generate reconfig.txt fine but cmd.txt I cannot find it anywhere, while applying config and wait for 5 minutes till I control-C the command. Attached please find the first file.

Re: nagiosxi stuck at applying configuration

Posted: Fri Jan 10, 2014 1:55 pm
by nanz28v
correction I found cmd.txt file at /usr/local/nagiosxi/scripts, which took a while to popup, but it has no content inside (0KB).

Re: nagiosxi stuck at applying configuration

Posted: Fri Jan 10, 2014 2:44 pm
by sreinhardt
Did you start "tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> cmd.txt" before applying config?

Re: nagiosxi stuck at applying configuration

Posted: Fri Jan 10, 2014 3:07 pm
by nanz28v
I ran the script first, then applied config, while it is hanging there for about 2 minutes I clicked on service to navigate away from the stalled screen, then Ctrl-C the script. I still don't see cmd.txt file at both "/usr/local/nagiosxi/var/" and "/usr/local/nagiosxi/scripts".

Re: nagiosxi stuck at applying configuration

Posted: Fri Jan 10, 2014 3:19 pm
by sreinhardt
Well you should have been in /tmp/ when running this command, so more than likely that is where cmd.txt resides.

Re: nagiosxi stuck at applying configuration

Posted: Fri Jan 10, 2014 3:29 pm
by nanz28v
I repeated the step after changing the script execution directory to /tmp/ and still 0KB for cmd.txt.

Re: nagiosxi stuck at applying configuration

Posted: Mon Jan 13, 2014 10:33 am
by abrist
Restart crond:

Code: Select all

service crond stop
ps -aef | grep cron
service crond start
Now try to generate the cmd.txt again.