Nagios hangs while performing applying configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Nagios hangs while performing applying configuration

Post 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..........................................................................................................................................................................................................................................................................................................................................................................
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios hangs while performing applying configuration

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Nagios hangs while performing applying configuration

Post by ravish78 »

here is the output attached
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios hangs while performing applying configuration

Post by scottwilkerson »

Is crond running on the system

Code: Select all

service crond status
Also, do you have anything "Red !" on the Admin page?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Nagios hangs while performing applying configuration

Post by ravish78 »

monitoring engine and database are shown in red
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Nagios hangs while performing applying configuration

Post by ravish78 »

tmproot@usa0300lv725>service crond status
crond (pid 5456) is running...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios hangs while performing applying configuration

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Nagios hangs while performing applying configuration

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

Re: Nagios hangs while performing applying configuration

Post by mguthrie »

Based on a related thread about this, did you recompile ndoutils by chance?
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Re: Nagios hangs while performing applying configuration

Post 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
Locked