nagiosxi stuck at applying configuration
nagiosxi stuck at applying configuration
We had this issue with version 2012R2.1 after waking NagiosXI server up from a previous evaluation in January 2013. After we started the server in GUI we can no longer apply the configuration. It just say this forever:
Command submitted for processing...
Waiting for configuration verification.........................................................
We just updated to 2012R2.7 this morning and still the same issue. I'm a newbie to Linux that's why we went with NagiosXI for its GUI interface. Please let me know if I need to run some command to troubleshoot. Thank you.
Command submitted for processing...
Waiting for configuration verification.........................................................
We just updated to 2012R2.7 this morning and still the same issue. I'm a newbie to Linux that's why we went with NagiosXI for its GUI interface. Please let me know if I need to run some command to troubleshoot. Thank you.
Re: nagiosxi stuck at applying configuration
Lets start by checking the httpd error log. Run the following tail and while it is running try to apply configuration, wait a few minutes and kill the tail (ctrl-c), and then post the output:
Code: Select all
tail -f /var/log/httpd/error_logFormer 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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: nagiosxi stuck at applying configuration
Can you successfully write and verify config files? Configure > CCM > Tools > Write Config Tool. Click the buttons from top to bottom, and share the output please. Also show the output of:
Code: Select all
cat /etc/php.ini | grep timeout
cat /etc/php.ini | grep memoryRe: nagiosxi stuck at applying configuration
Abrist, thank you for your input, here's the putty log according to your instruction:
Since my message contains too many URLS, I removed all expect one as below. It loops from PHP line 105 to 120. Please see attached log for full view. Thanks.
Last login: Tue Jan 7 15:52:36 2014 from 10.31.100.167
]0;root@sm5nag01:~[root@sm5nag01 ~]# tail -f /var/log/httpd/error_log
[Tue Jan 07 15:56:08 2014] [error] [client 10.14.225.50] PHP Notice: Undefined index: avg_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 107, referer: http://10.14.133.60/nagiosxi/includes/c ... -index.php
[Tue Jan 07 15:56:08 2014] [error] [client 10.14.225.50] PHP Notice: Undefined index: min_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 108, referer: http://10.14.133.60/nagiosxi/includes/c ... -index.php
=====omitted many repeating PHP line errors=========
[Tue Jan 07 15:56:28 2014] [error] [client 10.14.225.50] (13)Permission denied: access to /nagiosxi/includes/js/d3/d3.v3.min.js denied, referer: http://10.14.133.60/nagiosxi/includes/c ... config.php
]0;root@sm5nag01:~[root@sm5nag01 ~]#
Since my message contains too many URLS, I removed all expect one as below. It loops from PHP line 105 to 120. Please see attached log for full view. Thanks.
Last login: Tue Jan 7 15:52:36 2014 from 10.31.100.167
]0;root@sm5nag01:~[root@sm5nag01 ~]# tail -f /var/log/httpd/error_log
[Tue Jan 07 15:56:08 2014] [error] [client 10.14.225.50] PHP Notice: Undefined index: avg_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 107, referer: http://10.14.133.60/nagiosxi/includes/c ... -index.php
[Tue Jan 07 15:56:08 2014] [error] [client 10.14.225.50] PHP Notice: Undefined index: min_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 108, referer: http://10.14.133.60/nagiosxi/includes/c ... -index.php
=====omitted many repeating PHP line errors=========
[Tue Jan 07 15:56:28 2014] [error] [client 10.14.225.50] (13)Permission denied: access to /nagiosxi/includes/js/d3/d3.v3.min.js denied, referer: http://10.14.133.60/nagiosxi/includes/c ... config.php
]0;root@sm5nag01:~[root@sm5nag01 ~]#
You do not have the required permissions to view the files attached to this post.
Re: nagiosxi stuck at applying configuration
Judging from your error log, you may be having problems with php.ini limits. What is the output of:
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.
Re: nagiosxi stuck at applying configuration
Slansing, thank you for your response. I can write to config files but when I tried to verify it I got these error messages:
I'm posting your GREP results at the very bottom of this post. Thanks.
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 115.
Nagios Core 3.5.0
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-15-2013
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Warning: Duplicate definition found for timeperiod 'xi_timeperiod_24x7' (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 114)
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 115.
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2014.01.07 16:07:59 =~=~=~=~=~=~=~=~=~=~=~=
login as: root
****************************************************************************
NOTICE TO USERS
This system is the propery of MVP Healthcare. Access and use is for
MVP Healthcare authorized users only and is subject to monitoring by systems
personnel. Unauthorized access is a violation of Federal and State law and
will be prosecuted to the full extent of the law
*****************************************************************************
[email protected]'s password:
Last login: Tue Jan 7 15:56:22 2014 from 10.31.100.167
]0;root@sm5nag01:~[root@sm5nag01 ~]# cat /etc/php.ini | grep timeout
; Default timeout for socket based streams (seconds)
default_socket_timeout = 60
; Maximum time (in secondes) for connect timeout. -1 means no limit
mysql.connect_timeout = 60
; Connect timeout
;mssql.connect_timeout = 5
; Query timeout
;mssql.timeout = 60
; Default timeout in seconds.
pfpro.defaulttimeout = 30
]0;root@sm5nag01:~[root@sm5nag01 ~]#
]0;root@sm5nag01:~[root@sm5nag01 ~]# cat /etc/php.ini | grep memory
memory_limit = 128M ; Maximum amount of memory a script may consume
; If this parameter is set to Off, then memory leaks will not be shown (on
; keeping them in memory.
]0;root@sm5nag01:~[root@sm5nag01 ~]#
I'm posting your GREP results at the very bottom of this post. Thanks.
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 115.
Nagios Core 3.5.0
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-15-2013
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Warning: Duplicate definition found for timeperiod 'xi_timeperiod_24x7' (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 114)
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 115.
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2014.01.07 16:07:59 =~=~=~=~=~=~=~=~=~=~=~=
login as: root
****************************************************************************
NOTICE TO USERS
This system is the propery of MVP Healthcare. Access and use is for
MVP Healthcare authorized users only and is subject to monitoring by systems
personnel. Unauthorized access is a violation of Federal and State law and
will be prosecuted to the full extent of the law
*****************************************************************************
[email protected]'s password:
Last login: Tue Jan 7 15:56:22 2014 from 10.31.100.167
]0;root@sm5nag01:~[root@sm5nag01 ~]# cat /etc/php.ini | grep timeout
; Default timeout for socket based streams (seconds)
default_socket_timeout = 60
; Maximum time (in secondes) for connect timeout. -1 means no limit
mysql.connect_timeout = 60
; Connect timeout
;mssql.connect_timeout = 5
; Query timeout
;mssql.timeout = 60
; Default timeout in seconds.
pfpro.defaulttimeout = 30
]0;root@sm5nag01:~[root@sm5nag01 ~]#
]0;root@sm5nag01:~[root@sm5nag01 ~]# cat /etc/php.ini | grep memory
memory_limit = 128M ; Maximum amount of memory a script may consume
; If this parameter is set to Off, then memory leaks will not be shown (on
; keeping them in memory.
]0;root@sm5nag01:~[root@sm5nag01 ~]#
Re: nagiosxi stuck at applying configuration
Abrist, here is the output from Putty for command:
grep "memory_limit\|max_execution\|max_input" /etc/php.ini
max_execution_time = 30 ; 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 = 128M ; Maximum amount of memory a script may consume
grep "memory_limit\|max_execution\|max_input" /etc/php.ini
max_execution_time = 30 ; 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 = 128M ; Maximum amount of memory a script may consume
Re: nagiosxi stuck at applying configuration
You may want to increase (double) those values from php.ini and then restart httpd. But the crux of your issues are the config errors. Could you PM me your profile.zip? (admin --> system profile --> download)
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: nagiosxi stuck at applying configuration
I'm new to Linux, how do I increase (double) those values from php.ini specifically in commands? Thank you.
I get these errors when trying to generate profile.zip:
PROFILE BUILD FAILED
Array
(
)
CODE: 126
I get these errors when trying to generate profile.zip:
PROFILE BUILD FAILED
Array
(
)
CODE: 126
Re: nagiosxi stuck at applying configuration
1) How many hosts and services do you have configured in XI currently?
2) The duplicate warning is due to some changes in the XI templates. Can you attach the following files to your next post (you may need to use filezilla/winscp to download the files):
3) To increase the php limits, you need to edit the values in /etc/php./ini. You can use the cli editor "nano" to do so:
Scroll down to each of the values and change:
To:
Save out with "ctrl-o" and then exit with "crtl-x".
2) The duplicate warning is due to some changes in the XI templates. Can you attach the following files to your next post (you may need to use filezilla/winscp to download the files):
Code: Select all
/usr/local/nagios/etc/static/xitemplates.cfg
/usr/local/nagios/etc/static/xiobjects.cfg
/usr/local/nagios/etc/timeperiods.cfgCode: Select all
nano /etc/php.ini
Code: Select all
max_execution_time = 30 ; Maximum execution time of each script, in seconds
[snip]
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
[snip]
memory_limit = 128M ; Maximum amount of memory a script may consumeCode: Select all
max_execution_time = 60 ; Maximum execution time of each script, in seconds
[snip]
max_input_time = 90 ; Maximum amount of time each script may spend parsing request data
[snip]
memory_limit = 256M ; Maximum amount of memory a script may consumeFormer 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.