Page 1 of 4
Apply configuration doesn't finish
Posted: Mon Sep 30, 2013 4:26 am
by Frédéric GRANAT
Hi,
I've got a problem with Apply configuration, it doesn't finish.
Please find attached the file reconfig.txt produced by : ./reconfigure_nagios.sh &> reconfig.txt
I tried to run : tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> cmd.txt, but the command never ends.
If I restart my Nagios server, apply configuration works.
Re: Apply configuration doesn't finish
Posted: Mon Sep 30, 2013 9:04 am
by abrist
The reconfigure looks good. What are your php limits set to?
Code: Select all
grep "memory_limit\|max_execution\|max_input" /etc/php.ini
Re: Apply configuration doesn't finish
Posted: Mon Sep 30, 2013 9:30 am
by Frédéric GRANAT
max_execution_time = 300 ; Maximum execution time of each script, in seconds
max_input_time = 300 ; Maximum amount of time each script may spend parsing request data
memory_limit = 512M ; Maximum amount of memory a script may consume
Re: Apply configuration doesn't finish
Posted: Mon Sep 30, 2013 9:35 am
by abrist
Have you waited for a full 300 seconds to verify that apply config is not just taking 5+ minutes?
Re: Apply configuration doesn't finish
Posted: Mon Sep 30, 2013 9:57 am
by Frédéric GRANAT
When I restart the server "Apply configuration" takes 10 seconds to execute.
Even if it takes 5 min to execute, I don't find that it is satisfying.
Frederic
Re: Apply configuration doesn't finish
Posted: Mon Sep 30, 2013 10:25 am
by abrist
Frédéric GRANAT wrote:I tried to run : tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> cmd.txt, but the command never ends.
Go ahead and the run the command again. While it is running, apply configuration. After 2+ minutes, kill the tail with ctrl-c and post the cmd.txt file in code wraps.
Re: Apply configuration doesn't finish
Posted: Wed Oct 02, 2013 2:37 pm
by niebais
Could you post a copy of your httpd error logs here (last 50 lines after running it) ? Also, did you use the Nagios network/router wizard and setup a few big routers with it?
Re: Apply configuration doesn't finish
Posted: Thu Oct 03, 2013 9:13 am
by lmiltchev
Thanks, niebais!
Re: Apply configuration doesn't finish
Posted: Thu Oct 17, 2013 3:58 am
by Frédéric GRANAT
Hi,
Still have the problem.
Go ahead and the run the command again. While it is running, apply configuration. After 2+ minutes, kill the tail with ctrl-c and post the cmd.txt file in code wraps.
=>
Here's the content of : tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> cmd.txt
[root@nagiosxi ~]# vi cmd.txt
PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
PROCESSING COMMAND ID 3285...
Setting new htaccess credentials
Updating password for user nagiosadmin
/usr/bin/htpasswd: unable to update file /usr/local/nagiosxi/etc/htpasswd.users
OUTPUT=
RETURNCODE=1
...........................................................
PROCESSED 1 COMMANDS
It seems there's an overload on the server (because the problem occurs after a delay).
HEre's the output of the command top (winbind high CPU usage, even if Apply config is not running)
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4216 root 25 0 12216 2380 1612 S 99.5 0.1 18502:47 winbindd
Additional information : we've just noticed that our Nagios XI server is not in the AD domain and queries machines in the domain, maybe we should add it to the domain ?
Re: Apply configuration doesn't finish
Posted: Thu Oct 17, 2013 10:22 am
by yancy
Hello,
There is no advantage to joining Nagios to the domain in order to query domain members.
Code: Select all
Updating password for user nagiosadmin
/usr/bin/htpasswd: unable to update file /usr/local/nagiosxi/etc/htpasswd.users
did you try changing your nagiosadmin password at some point? does this user account work properly?
-Yancy