Timezone errors

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Timezone errors

Post by ravish78 »

We are seeing below errors frequently in http log files.

[Thu Jun 05 09:03:31 2014] [error] [client 13.157.214.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 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosxi/html/includes/utilsl.inc.php on line 336, referer: http://nagioswv.corp.xerox.com/nagiosxi ... ost=carbon
[Thu Jun 05 09:03:34 2014] [error] [client 13.157.214.149] PHP Warning: scandir(/usr/local/nagiosxi/html/includes/lang/locale): failed to open dir: Permission denied in /usr/local/nagiosxi/html/includes/utils.inc.php on line 384, referer: http://nagioswv.corp.xerox.com/nagiosxi/account/
[Thu Jun 05 09:03:34 2014] [error] [client 13.157.214.149] PHP Warning: scandir(): (errno 13): Permission denied in /usr/local/nagiosxi/html/includes/utils.inc.php on line 384, referer: http://nagioswv.corp.xerox.com/nagiosxi/account/
[Thu Jun 05 09:03:34 2014] [error] [client 13.157.214.149] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/utils.inc.php on line 388, referer: http://nagioswv.corp.xerox.com/nagiosxi/account/
[Thu Jun 05 09:03:34 2014] [error] [client 13.157.214.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 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosxi/html/includes/utils-status.inc.php on line 70, referer: http://nagioswv.corp.xerox.com/nagiosxi/account/


Can you helpus resolving it.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Timezone errors

Post by tmcdonald »

You need to set the date.timezone value in /etc/php.ini to its appropriate value.
Former Nagios employee
Locked