Apply configuration doesn't finish
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Apply configuration doesn't finish
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.
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.
You do not have the required permissions to view the files attached to this post.
Re: Apply configuration doesn't finish
The reconfigure looks good. What are your php limits set to?
Code: Select all
grep "memory_limit\|max_execution\|max_input" /etc/php.iniFormer 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.
"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.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: Apply configuration doesn't finish
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
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
Have you waited for a full 300 seconds to verify that apply config is not just taking 5+ minutes?
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.
"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.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: Apply configuration doesn't finish
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
Even if it takes 5 min to execute, I don't find that it is satisfying.
Frederic
Re: Apply configuration doesn't finish
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.Frédéric GRANAT wrote:I tried to run : tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> cmd.txt, but the command never ends.
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.
"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.
Re: Apply configuration doesn't finish
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
Thanks, niebais!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: Apply configuration doesn't finish
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 ?
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
Hello,
There is no advantage to joining Nagios to the domain in order to query domain members.
did you try changing your nagiosadmin password at some point? does this user account work properly?
-Yancy
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
-Yancy