I've been getting the following error when I tried to open any demo map in NAGVIS. Please help.
PHP error in ajax request handler: Error: (2) 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/New_York' for 'EDT/-4.0/DST' instead (/usr/local/nagvis/share/server/core/classes/objects/NagVisStatefulObject.php:437)
NAGVIS - ajax request handler error
Re: NAGVIS - ajax request handler error
Please run the following on your box and return the results to us:
Code: Select all
grep timezone /etc/php.iniRe: NAGVIS - ajax request handler error
Please see output below
grep -i timezone /etc/php.ini
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = America/New York
grep -i timezone /etc/php.ini
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = America/New York
Re: NAGVIS - ajax request handler error
It looks like your timezone is missing an underscore - let's try resetting it properly with the following command.
Let me know if you have any trouble. Thanks!
Code: Select all
/usr/local/nagiosxi/scripts/change_timezone.sh -z America/New_YorkRe: NAGVIS - ajax request handler error
Works perfect! Thank you.