Page 1 of 2

Nagios hangs while performing applying configuration

Posted: Tue Sep 25, 2012 3:02 pm
by ravish78
Hi ,
We are in process of migrating nagios core to nagios xi and have completed most of the steps like installs ,export and import.
Import was successful.
In write config Now we are able to click first 3 buttons without errors and when we try apply configuration before we restart nagios it is just getting stuck and not able to proceeding further.Can you please guide us.

We have even tried increasing Resource Limits as per nagios suggestions.

max_execution_time = 60 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 256M ; Maximum amount of memory a script may consume


Below is the snapshot


Applying Configuration
Command submitted for processing...
Waiting for configuration verification..........................................................................................................................................................................................................................................................................................................................................................................

Re: Nagios hangs while performing applying configuration

Posted: Tue Sep 25, 2012 4:17 pm
by scottwilkerson
Lets run a manual config verification

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > /tmp/cfgver.txt
Then attach/tmp/cfgver.txt to your next post

Re: Nagios hangs while performing applying configuration

Posted: Wed Sep 26, 2012 9:08 am
by ravish78
here is the output attached

Re: Nagios hangs while performing applying configuration

Posted: Wed Sep 26, 2012 5:08 pm
by scottwilkerson
Is crond running on the system

Code: Select all

service crond status
Also, do you have anything "Red !" on the Admin page?

Re: Nagios hangs while performing applying configuration

Posted: Thu Sep 27, 2012 8:37 am
by ravish78
monitoring engine and database are shown in red

Re: Nagios hangs while performing applying configuration

Posted: Thu Sep 27, 2012 9:31 am
by ravish78
tmproot@usa0300lv725>service crond status
crond (pid 5456) is running...

Re: Nagios hangs while performing applying configuration

Posted: Thu Sep 27, 2012 5:09 pm
by scottwilkerson
lets try to run

Code: Select all

service nagios stop
service ndo2db stop
killall -9 nagios
killall -9 ndo2db
service ndo2db start
service nagios start

Re: Nagios hangs while performing applying configuration

Posted: Thu Sep 27, 2012 8:28 pm
by ravish78
As per your instruction we tried the above mentioned steps. While restarting ndo2db we received the following error:

tmproot@usa0300lv725>/sbin/service ndo2db start
Configuration file /usr/local/nagios/etc/ndo2db.cfg not found. Exiting..

Please suggest...

Re: Nagios hangs while performing applying configuration

Posted: Fri Sep 28, 2012 11:39 am
by mguthrie
Based on a related thread about this, did you recompile ndoutils by chance?

Re: Nagios hangs while performing applying configuration

Posted: Fri Sep 28, 2012 11:47 am
by disrael
We never installed ndoutils, we heard some where it came installed by default. We also see init scripts and /usr/local/nagios/bin/ndo2db.

I copied the config file from one of the ndoutils.tar.gz and put it in the place so it would have a config file, then we get this:

Code: Select all

tmproot@usa0300lv725>service ndo2db start
Starting ndo2db:Could not bind socket: No such file or directory
 done.
I don't want to get to far ahead as I fear messing something up, until we get some solid answer of what we are doing wrong, if anything.

Thanks,

Doron