Emailing from the future

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Pilly170
Posts: 75
Joined: Thu Mar 28, 2013 6:03 am

Emailing from the future

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Emailing from the future

Post 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
Pilly170
Posts: 75
Joined: Thu Mar 28, 2013 6:03 am

Re: Emailing from the future

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Emailing from the future

Post 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
Pilly170
Posts: 75
Joined: Thu Mar 28, 2013 6:03 am

Re: Emailing from the future

Post by Pilly170 »

That new guide seems to have sorted it. Thanks
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Emailing from the future

Post by slansing »

Great, closing.
Locked