Page 1 of 1

NAGVIS - ajax request handler error

Posted: Fri May 08, 2015 12:44 pm
by briannd81
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)

Re: NAGVIS - ajax request handler error

Posted: Fri May 08, 2015 12:52 pm
by jolson
Please run the following on your box and return the results to us:

Code: Select all

grep timezone /etc/php.ini

Re: NAGVIS - ajax request handler error

Posted: Mon May 11, 2015 8:41 am
by briannd81
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

Re: NAGVIS - ajax request handler error

Posted: Mon May 11, 2015 9:25 am
by jolson
It looks like your timezone is missing an underscore - let's try resetting it properly with the following command.

Code: Select all

/usr/local/nagiosxi/scripts/change_timezone.sh -z America/New_York
Let me know if you have any trouble. Thanks!

Re: NAGVIS - ajax request handler error

Posted: Fri May 15, 2015 11:49 am
by briannd81
Works perfect! Thank you.