Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone #24

Open
bdf0506 opened this issue Aug 23, 2014 · 6 comments
Open

Timezone #24

bdf0506 opened this issue Aug 23, 2014 · 6 comments

Comments

@bdf0506
Copy link

bdf0506 commented Aug 23, 2014

Is there a way to get this to be in the local timezone? It shows currently in UTC time, and modifying the nagios config file by hand doesn't seem to fix anything.

Thanks!

@mclarkson
Copy link
Owner

You're using Synagios?

@bdf0506
Copy link
Author

bdf0506 commented Aug 23, 2014

Sorry, should have been more clear. I am running synagios on a Synology DS213j. The DS itself is in EST, but when I login to the Nagios Core GUI, everything is in UTC.
Based on some documentation for Nagios that I found on the internet, I tried to add the right timezone "use_timezone=US/New_York" to:
/volume1/@appstore/Synagios/nagios-chroot/etc/nagios3/nagios.cfg

I then went into the apache2 files as the config mentions, and tried to change it there as well, but no changes. Is there a proper way to change the timezone to EST on Synagios?

@mclarkson
Copy link
Owner

Sorry for the delay. Just got back from a weekend away.

You will need to do the following on the diskstation:

cd /volume1/@appstore/Synagios/nagios-chroot/
cp etc/localtime etc/localtime.orig
cp usr/share/zoneinfo/EST etc/localtime

This seems to be enough to change the timezone shown in the nagios GUI.

I was hoping to copy localtime from the diskstation but that's in IST (India Standard Time). So I'm not sure how to read the timezone as set in the diskstation GUI yet.

I'll leave this open to address in the next version.

@mclarkson mclarkson added this to the 1.174/0.14 milestone Aug 26, 2014
@bdf0506
Copy link
Author

bdf0506 commented Aug 28, 2014

Thanks, works fine. I actually had to use usr/share/zoneinfo/EST5EDT to account for daylight savings time, and will have to manually change it every time that daylight savings hits.

@mclarkson
Copy link
Owner

Thanks for updating the issue. Since:

zdump -v /usr/share/zoneinfo/EST5EDT | grep 2014
/usr/share/zoneinfo/EST5EDT  Sun Mar  9 06:59:59 2014 UTC = Sun Mar  9 01:59:59 2014 EST isdst=0 gmtoff=-18000
/usr/share/zoneinfo/EST5EDT  Sun Mar  9 07:00:00 2014 UTC = Sun Mar  9 03:00:00 2014 EDT isdst=1 gmtoff=-14400
/usr/share/zoneinfo/EST5EDT  Sun Nov  2 05:59:59 2014 UTC = Sun Nov  2 01:59:59 2014 EDT isdst=1 gmtoff=-14400
/usr/share/zoneinfo/EST5EDT  Sun Nov  2 06:00:00 2014 UTC = Sun Nov  2 01:00:00 2014 EST isdst=0 gmtoff=-18000

Won't it switch between EST and EDT itself? Why will you need to change it manually?

@bdf0506
Copy link
Author

bdf0506 commented Aug 31, 2014

Good point, you are right, I should be good to go as is. Thanks for the assistance!

@mclarkson mclarkson removed this from the 1.174/0.14 milestone Sep 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants