Modifying incorrect timezone in Nagios XI web console

I was recently looking at the last check times within Nagios XI web console, I noticed that the timestamp was incorrect in comparison to the system time on the Nagios XI system (CentOS).

On browsing to Admin > System Config > System Profile, the PHP timezone was incorrect and set to be ‘America/Chicago’.

In order to set the correct PHP timezone, I performed the following:

1) Edit ‘/etc/php.ini’ to configure the correct time zone.

2) Browse to the ‘Module Settings’ section and modify the ‘date.timezone’ setting, in my case this was to modify the timezone as below:

date.timezone = Europe/London 

3) Save the modified ‘/etc/php.ini’ file.

4) Restart the apache server:

service httpd restart 

Now the Nagios XI web console is reporting the correct timezone and times are displayed as expected.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s