Page 1 of 2
error while applying configuration and accessing CCM
Posted: Tue Jan 29, 2013 1:44 pm
by sarfarosh
while APPLYING CONFIGURATION which says
"
Code: Select all
Configuration submitted for processing...
Waiting for configuration verification....
Backend login to the Core Config Manager failed.
"
and While accessing CCM when i click on any link it turns blank & am not able to access anything in CCM.
Have tried Running /usr/local/nagiosxi/scripts/reconfigure_nagios.sh and it gives me the error as below
Code: Select all
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=n@gweb' -O nagiosql.login--2013-01-29 17:29:34-- http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2013-01-29 17:29:34 ERROR 500: Internal Server Error.
NAGIOSQL LOGIN FAILED!
~
tail -f /usr/local/nagiosxi/var/cmdsubsys.log says:
Code: Select all
[root@localhost scripts]# tail -f /usr/local/nagiosxi/var/cmdsubsys.log
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
APPLYING NAGIOSCORE CONFIG...
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for 'IST/5.0/no DST' instead in /usr/local/nagiosxi/html/includes/utils-auditlog.inc.php on line 66
CMDLINE=cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh
URL: http://localhost/nagiosql/index.php
CMDLINE
--2013-01-29 17:44:28-- http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2013-01-29 17:44:28 ERROR 500: Internal Server Error.
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=n@gweb' -O nagiosql.loginNAGIOSQL LOGIN FAILED!
OUTPUT=/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=n@gweb' -O nagiosql.loginNAGIOSQL LOGIN FAILED!
RETURNCODE=2
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
PROCESSED 1 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
Re: error while applying configuration and accessing CCM
Posted: Tue Jan 29, 2013 1:52 pm
by abrist
You will want to change /etc/php.ini: the line "date.timezone = ..." should read "date.timezone = your_timezone"
You may have to set the system time as well:
http://assets.nagios.com/downloads/nagi ... m_Time.pdf
Re: error while applying configuration and accessing CCM
Posted: Tue Jan 29, 2013 1:54 pm
by slansing
Abrist has a great suggestion, lets also make sure that there is nothing else happening on the php end of things which these errors are indicative of. Can you post the output from the following?:
Re: error while applying configuration and accessing CCM
Posted: Tue Jan 29, 2013 2:38 pm
by sarfarosh
have set mine time zone in php.ini to Asia/Kolkata and restarted httpd service
tail /var/log/httpd/error_log says.
Code: Select all
[root@localhost ~]# tail /var/log/httpd/error_log
[Wed Jan 30 01:02:07 2013] [error] [client 173.160.118.149] PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for 'IST/5.0/no DST' instead in /usr/local/nagiosxi/html/includes/utilsl.inc.php on line 381, referer: http://123.176.37.93/nagiosxi/
[Wed Jan 30 01:02:36 2013] [error] [client 173.160.118.149] PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for 'IST/5.0/no DST' instead in /usr/local/nagiosxi/html/includes/utils-status.inc.php on line 70, referer: http://123.176.37.93/nagiosxi/
[Wed Jan 30 01:02:36 2013] [error] [client 173.160.118.149] PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for 'IST/5.0/no DST' instead in /usr/local/nagiosxi/html/includes/utils-status.inc.php on line 70, referer: http://123.176.37.93/nagiosxi/
[Wed Jan 30 01:02:37 2013] [error] [client 173.160.118.149] PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for 'IST/5.0/no DST' instead in /usr/local/nagiosxi/html/includes/utilsl.inc.php on line 381, referer: http://123.176.37.93/nagiosxi/
[Wed Jan 30 01:03:05 2013] [notice] caught SIGTERM, shutting down
[Wed Jan 30 01:03:06 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jan 30 01:03:06 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Jan 30 01:03:06 2013] [notice] Digest: done
[Wed Jan 30 01:03:06 2013] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Jan 30 01:03:07 2013] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
After restarting Httpd service error log shows.
Code: Select all
[root@localhost ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@localhost ~]# tail -f /var/log/httpd/error_log
[Wed Jan 30 01:05:30 2013] [error] [client 120.62.176.147] PHP Warning: require_once(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 01:05:30 2013] [error] [client 120.62.176.147] PHP Fatal error: require_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 01:05:35 2013] [error] [client 120.62.176.147] PHP Warning: require_once(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 01:05:35 2013] [error] [client 120.62.176.147] PHP Fatal error: require_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 01:05:37 2013] [error] [client 120.62.176.147] PHP Warning: require_once(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 01:05:37 2013] [error] [client 120.62.176.147] PHP Fatal error: require_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 01:05:38 2013] [error] [client 120.62.176.147] PHP Warning: require_once(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 01:05:38 2013] [error] [client 120.62.176.147] PHP Fatal error: require_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 01:05:38 2013] [error] [client 120.62.176.147] PHP Warning: require_once(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 01:05:38 2013] [error] [client 120.62.176.147] PHP Fatal error: require_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
Re: error while applying configuration and accessing CCM
Posted: Tue Jan 29, 2013 2:42 pm
by sarfarosh
attaching the screenshot of CCM error.
Re: error while applying configuration and accessing CCM
Posted: Tue Jan 29, 2013 2:46 pm
by abrist
You may have to spell the date.timezone setting as "Asia/Calcutta". I will look into the ccm error.
Re: error while applying configuration and accessing CCM
Posted: Tue Jan 29, 2013 2:51 pm
by sarfarosh
abrist wrote:You may have to spell the date.timezone setting as "Asia/Calcutta". I will look into the ccm error.
abrist attaching the screenshot of php.ini where i have defined date.timezone please confirm if itÅ› correct
Re: error while applying configuration and accessing CCM
Posted: Tue Jan 29, 2013 4:55 pm
by abrist
"Asia/Calcutta" is technically depreciated, so one would conclude that "Asia/Kolkata" is correct.
But, the version of php used by XI is a bit older, so you need to use "
Asia/Calcutta" instead.
http://www.timezoneconverter.com/cgi-bi ... a/Calcutta
Make sure to restart httpd after the change:
Re: error while applying configuration and accessing CCM
Posted: Wed Jan 30, 2013 1:46 am
by sarfarosh
abrist have set the date/time.zone, but still am getting error with CCM & applying configuration getting the same error as above
mine PHP verion is
Code: Select all
[root@localhost scripts]# php -v
PHP 5.3.3 (cli) (built: Jun 27 2012 12:25:48)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
[root@localhost scripts]#
Code: Select all
[root@localhost scripts]# ./reconfigure_nagios.sh >reconfigure.txt
--2013-01-30 12:12:12-- http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2013-01-30 12:12:12 ERROR 500: Internal Server Error
content of reconfigure.txt
Code: Select all
RL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=n@gweb' -O nagiosql.loginNAGIOSQL LOGIN FAILED!
~
Httpd error log says
Code: Select all
[root@localhost scripts]# tail -f /var/log/httpd/error_log
[Wed Jan 30 12:07:20 2013] [error] [client 49.248.31.222] PHP Warning: require_once(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 12:07:20 2013] [error] [client 49.248.31.222] PHP Fatal error: require_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 12:07:23 2013] [error] [client 49.248.31.222] PHP Warning: require_once(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 12:07:23 2013] [error] [client 49.248.31.222] PHP Fatal error: require_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 12:07:24 2013] [error] [client 49.248.31.222] PHP Warning: require_once(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 12:07:24 2013] [error] [client 49.248.31.222] PHP Fatal error: require_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 12:07:25 2013] [error] [client 49.248.31.222] PHP Warning: require_once(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 12:07:25 2013] [error] [client 49.248.31.222] PHP Fatal error: require_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 12:07:25 2013] [error] [client 49.248.31.222] PHP Warning: require_once(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
[Wed Jan 30 12:07:25 2013] [error] [client 49.248.31.222] PHP Fatal error: require_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.inc.php on line 50, referer: http://123.176.37.93/nagiosxi/includes/components/ccm/xi-index.php
Re: error while applying configuration and accessing CCM
Posted: Wed Jan 30, 2013 8:49 am
by scottwilkerson
you are definately missing required packages, don't know all of them but lets run
Code: Select all
yum install php-pear php-pear-HTML-Template-IT.noarch -y