NAGVIS - ajax request handler error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
briannd81
Posts: 31
Joined: Sun May 03, 2015 5:41 pm

NAGVIS - ajax request handler error

Post 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)
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: NAGVIS - ajax request handler error

Post by jolson »

Please run the following on your box and return the results to us:

Code: Select all

grep timezone /etc/php.ini
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
briannd81
Posts: 31
Joined: Sun May 03, 2015 5:41 pm

Re: NAGVIS - ajax request handler error

Post 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
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: NAGVIS - ajax request handler error

Post 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!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
briannd81
Posts: 31
Joined: Sun May 03, 2015 5:41 pm

Re: NAGVIS - ajax request handler error

Post by briannd81 »

Works perfect! Thank you.
Locked