Timezones

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
adam.sage
Posts: 30
Joined: Tue Mar 25, 2014 8:13 am

Timezones

Post by adam.sage »

I have the time zone set to UTC -5 Eastern in Configure>System Configuration but all times still show as standard UTC times (graphs, etc). Is there any way to force the correct time?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Timezones

Post by slansing »

Lets verify that that is actually set properly, please run the following commands and share the output, thanks!:

Code: Select all

date

hwclock

cat /etc/php.ini | grep 'date.time'
Edit: Apologies, I reversed date and time in the above command, it has been corrected.
adam.sage
Posts: 30
Joined: Tue Mar 25, 2014 8:13 am

Re: Timezones

Post by adam.sage »

[root@nagios ~]# date
Thu Oct 30 15:19:24 UTC 2014
[root@nagios ~]# hwclock
Thu 30 Oct 2014 03:19:31 PM UTC -0.656628 seconds
[root@nagios ~]# cat /etc/php.ini | grep 'time.date'
[root@nagios ~]#

The last command did not have any output
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Timezones

Post by snapon_admin »

Try:

Code: Select all

cat /etc/php.ini | grep 'date.timezone'
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Timezones

Post by slansing »

Thanks Snap-on, I've also corrected the initial post. Let us know what it comes up with Adam, thanks!
adam.sage
Posts: 30
Joined: Tue Mar 25, 2014 8:13 am

Re: Timezones

Post by adam.sage »

No problem

[root@nagios ~]# cat /etc/php.ini | grep 'date.timezone'
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = US/Eastern
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Timezones

Post by slansing »

Looks like the times differ, please take a walk through of this document, and that should get this corrected:

http://assets.nagios.com/downloads/nagi ... m_Time.pdf

Also, check the system time of the workstation you are on, that can effect some browser display elements.
adam.sage
Posts: 30
Joined: Tue Mar 25, 2014 8:13 am

Re: Timezones

Post by adam.sage »

Sorry for the delay. I followed the guide and the time for everything is correct now. Thanks!
Locked