I use a preconfigured Linux image that has the time zone set to "date.timezone = Etc/UTC" in /etc/php.ini before I do a full install of Nagios XI.
Everything is fine until I log in for the first time ("date.timezone = Etc/UTC" is still set after the full install). After that, the time zone is unset "date.timezone = " in /etc/php.ini and /var/log/httpd fills up with this error:
[Sun Sep 20 03:35:08 2015] [error] [client 192.168.1.55] 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 'UTC' for 'UTC/0.0/no DST' instead in /usr/local/nrdp/server/plugins/nagioscorepassivecheck/nagioscorepassivecheck.inc.php on line 106
Any suggestions? I was going to tinker with install.php or utils-timezones.inc.php, but I thought I'd consult the forums first.
Thanks.
Time Zone PHP Warning
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Time Zone PHP Warning
We assume that you don't set your timezone manually and we'll happily do it for you under Admin --> System Settings. Is this not a possible scenario for you... meaning can you simply unset it prior to doing the Nagios final install?
You probably don't need to reinstall, just delete date.timezone anywhere you have it configured in php.ini or php.d/* and then re-set it in the XI interface, I bet everything will work like a charm.
You probably don't need to reinstall, just delete date.timezone anywhere you have it configured in php.ini or php.d/* and then re-set it in the XI interface, I bet everything will work like a charm.
Re: Time Zone PHP Warning
I don't see Admin --> System Settings. Here are my options:
Quick Tools
Admin Home
System Information
System Status
Monitoring Engine Status
Audit Log
Check For Updates
Users
Manage Users
Notification Management
System Config
Manage System Config
Proxy Configuration
System Profile
Manage Email Settings
Manage Mobile Carriers
Performance Settings
Graph Templates
Automatic Login
Reset Security Credentials
SSH Terminal
License Information
Monitor Config
Config Snapshots
Check File Permissions
NRDS Config Manager
Unconfigured Objects
Check Transfers
Outbound Transfers
Inbound Transfers
System Extensions
Manage Components
Manage Dashlets
Manage Config Wizards
Manage Plugins
Manage MIBs
I'm using Nagios XI Version 2012R2.9
How do you reset the XI interface?
Thanks.
Quick Tools
Admin Home
System Information
System Status
Monitoring Engine Status
Audit Log
Check For Updates
Users
Manage Users
Notification Management
System Config
Manage System Config
Proxy Configuration
System Profile
Manage Email Settings
Manage Mobile Carriers
Performance Settings
Graph Templates
Automatic Login
Reset Security Credentials
SSH Terminal
License Information
Monitor Config
Config Snapshots
Check File Permissions
NRDS Config Manager
Unconfigured Objects
Check Transfers
Outbound Transfers
Inbound Transfers
System Extensions
Manage Components
Manage Dashlets
Manage Config Wizards
Manage Plugins
Manage MIBs
I'm using Nagios XI Version 2012R2.9
How do you reset the XI interface?
Thanks.
Re: Time Zone PHP Warning
What version of XI are you running?
You do not have the required permissions to view the files attached to this post.
Former Nagios Employee.
me.
me.