Nagios hangs while performing applying configuration
Nagios hangs while performing applying configuration
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..........................................................................................................................................................................................................................................................................................................................................................................
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
Lets run a manual config verification
Then attach/tmp/cfgver.txt to your next post
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > /tmp/cfgver.txtRe: Nagios hangs while performing applying configuration
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
Is crond running on the system
Also, do you have anything "Red !" on the Admin page?
Code: Select all
service crond statusRe: Nagios hangs while performing applying configuration
monitoring engine and database are shown in red
Re: Nagios hangs while performing applying configuration
tmproot@usa0300lv725>service crond status
crond (pid 5456) is running...
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
lets try to run
Code: Select all
service nagios stop
service ndo2db stop
killall -9 nagios
killall -9 ndo2db
service ndo2db start
service nagios startRe: Nagios hangs while performing applying configuration
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...
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
Based on a related thread about this, did you recompile ndoutils by chance?
Re: Nagios hangs while performing applying configuration
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:
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
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.
Thanks,
Doron