nagiosxi stuck at applying configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosxi stuck at applying configuration

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post by nanz28v »

how do I restart Nagios service? Or maybe a reboot, to solve the issue?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosxi stuck at applying configuration

Post by abrist »

Code: Select all

service nagios restart
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post 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.
You do not have the required permissions to view the files attached to this post.
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post 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).
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: nagiosxi stuck at applying configuration

Post by sreinhardt »

Did you start "tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> cmd.txt" before applying config?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post 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".
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: nagiosxi stuck at applying configuration

Post by sreinhardt »

Well you should have been in /tmp/ when running this command, so more than likely that is where cmd.txt resides.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post by nanz28v »

I repeated the step after changing the script execution directory to /tmp/ and still 0KB for cmd.txt.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosxi stuck at applying configuration

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked