Page 1 of 1

Emailing from the future

Posted: Tue Jun 04, 2013 3:26 am
by Pilly170
Hi,

I've just received an email from the future :)

Code: Select all

From: Nagios XI [mailto:[email protected]] 
Sent:[b] 04 June 2013 14:11[/b]
To: An Admin
Subject: RECOVERY Service Alert - Hostname/Disk IOs - UserDB Drive is OK

***** Nagios XI Alert *****

Nagios has detected this service has recovered.

Notification Type: RECOVERY

Service: Disk IOs - UserDB Drive
Host: Hostname1
Address: ..x.x
State: OK
Info:
Transfers 13.91
Date/Time: 04/06/2013 08:10:37

Respond: http://x.x.x.x/nagiosxi//rr.php?uid=50-2677-c840ec75c286a027ce57d843c3eb4341
Nagios URL: http://x.x.x.x/nagiosxi/


If i do

Code: Select all

[root@nagios ~]# date
Tue Jun  4 08:49:21 CDT 2013
I have the correct time, I assume that the error is to do with the timezone... CDT?

How do I change this to GMT?

Re: Emailing from the future

Posted: Tue Jun 04, 2013 9:34 am
by slansing
I would follow this time syncing guide:

http://support.nagios.com/wiki/index.ph ... .22_Errors

Also, please post the output of the following:

Code: Select all

cat /etc/php.ini | grep date.timezone

Re: Emailing from the future

Posted: Tue Jun 04, 2013 9:38 am
by Pilly170

Code: Select all

[root@nagios ~]# cat /etc/php.ini | grep date.timezone
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
date.timezone = America/Chicago

Re: Emailing from the future

Posted: Tue Jun 04, 2013 9:41 am
by slansing
You are going to want to change that line to your timezone as well. This is the list of supported PHP timezones, and how they are defined. Once you change that line make sure to restart apache:

http://php.net/manual/en/timezones.php

Restart:

Code: Select all

service httpd restart
Ah looks like we also have new document on changing system time:

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

Re: Emailing from the future

Posted: Tue Jun 04, 2013 10:03 am
by Pilly170
That new guide seems to have sorted it. Thanks

Re: Emailing from the future

Posted: Tue Jun 04, 2013 10:06 am
by slansing
Great, closing.