Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using scclnagiosxi01.dvms.local for ServerName
[ OK ]
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 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /tmp/nagiosxi/nagiosxi/basedir/html/includes/components/xicore/dashlets.inc.php on line 35
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 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /tmp/nagiosxi/nagiosxi/basedir/html/includes/dashlets/internettrafficreport/internettrafficreport.inc.php on line 19
PHP Fatal error: Uncaught exception 'Exception' with message 'A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.' in /tmp/nagiosxi/nagiosxi/basedir/html/includes/db.inc.php:321
Stack trace:
#0 /tmp/nagiosxi/verify-prereqs.php(0): db_connect('nagiosxi')
#1 /tmp/nagiosxi/verify-prereqs.php(2): sg_load('52C4625F2E33770...')
#2 {main}
thrown in /tmp/nagiosxi/nagiosxi/basedir/html/includes/db.inc.php on line 321
and then the service is down!!
please help asap. it's production env. and please advice for the upgrade guide in this situation.
Last edited by iwang on Mon Jan 27, 2020 4:08 pm, edited 1 time in total.
as it's monitoring all prod so i have to revert the system to old snapshot for recovering so i lost the trace already.
regarding to this issue, what we observed are:
during the upgrade, it complains installed php-common-5.3.3-49.el6_6.x86_64, but looking for php-common-5.3.3-46.el6_6.x86_64, so we uninstalled php and reinstalled then got the error. that should be the root cause. but wondering why it complains the php version.
besides, we had a standby nagios server setup, where is the guide to have two cluster setup with one backend DB?
this exception was thrown when doing the ./upgrade directly from latest-xi package:
iwang wrote:we have a nagios database in different machine, during the nagios upgrade, we got error:
——
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using scclnagiosxi01.dvms.local for ServerName
[ OK ]
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 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /tmp/nagiosxi/nagiosxi/basedir/html/includes/components/xicore/dashlets.inc.php on line 35
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 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /tmp/nagiosxi/nagiosxi/basedir/html/includes/dashlets/internettrafficreport/internettrafficreport.inc.php on line 19
PHP Fatal error: Uncaught exception 'Exception' with message 'A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.' in /tmp/nagiosxi/nagiosxi/basedir/html/includes/db.inc.php:321
Stack trace:
#0 /tmp/nagiosxi/verify-prereqs.php(0): db_connect('nagiosxi')
#1 /tmp/nagiosxi/verify-prereqs.php(2): sg_load('52C4625F2E33770...')
#2 {main}
thrown in /tmp/nagiosxi/nagiosxi/basedir/html/includes/db.inc.php on line 321
and then the service is down!!
please help asap. it's production env. and please advice for the upgrade guide in this situation.