Alert date/time off - 6 hours ahead

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
powersports
Posts: 9
Joined: Tue Apr 17, 2012 8:39 am

Alert date/time off - 6 hours ahead

Post by powersports »

When I get alerts the date/time appears to still be in UTC time. Also, when I search notifications, selecting the last 24 hours, it show in UTC time.

If I run the command date the correct time is displayed:
Thu May 31 08:00:26 CDT 2012

The only line in /etc/sysconfig/clock is:
ZONE="AMERICA/Chicago"

I'm sure it is something simple that I am missing.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Alert date/time off - 6 hours ahead

Post by lmiltchev »

You may have to edit the "/etc/php.ini" file. Add this line in the "[Date]" section:

Code: Select all

date.timezone = America/Chicago
then restart apache:

Code: Select all

service httpd restart
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
powersports
Posts: 9
Joined: Tue Apr 17, 2012 8:39 am

Re: Alert date/time off - 6 hours ahead

Post by powersports »

Thanks, that fixed it.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Alert date/time off - 6 hours ahead

Post by lmiltchev »

I'm glad I could help!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked