Accounting for change to British Summer Time
Accounting for change to British Summer Time
Hi all,
since the clocks have gone forward here in the UK our system is now an hour behind. Is there any other way other than changing the system time zone settings when the clocks change here (British Summer Time) to account for this? I would prefer not to have to remember to change this twice a year ideally so that there is no possibility of it getting forgotten.
Thanks for any suggestions anyone may have.
Keith
since the clocks have gone forward here in the UK our system is now an hour behind. Is there any other way other than changing the system time zone settings when the clocks change here (British Summer Time) to account for this? I would prefer not to have to remember to change this twice a year ideally so that there is no possibility of it getting forgotten.
Thanks for any suggestions anyone may have.
Keith
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: Accounting for change to British Summer Time
you'll just want to have your linux administrator sync up with your NTP servers, or set it however they adjust any other machine. there really isn't any 'nagios' specifics for this.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Accounting for change to British Summer Time
Which system are you talking about? XI itself or the OS? Both of those should be able to handle the time change.
What's the output of the two following commands:
What's the output of the two following commands:
Code: Select all
ps -A | grep ntp
service ntpd status
Re: Accounting for change to British Summer Time
Sorry for my delay in replying.
I have been advised that NTP is not the problem here, the issue will be when the timezone changes we will end up overwriting an hours worth or data when the time goes back and will have an hours gap when the clock goes forward.
At present the server timezone is set to GMT, is there a way of making Nagios XI display the time correctly automatically when the change occurs?
Thanks.
I have been advised that NTP is not the problem here, the issue will be when the timezone changes we will end up overwriting an hours worth or data when the time goes back and will have an hours gap when the clock goes forward.
At present the server timezone is set to GMT, is there a way of making Nagios XI display the time correctly automatically when the change occurs?
Thanks.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Accounting for change to British Summer Time
If you want XI to sync with British time, then you should set your time zones as London, rather than GMT.
Alternatively, you could set both to UTC (GMT is not technically an option in XI).
Alternatively, you could set both to UTC (GMT is not technically an option in XI).
Re: Accounting for change to British Summer Time
In Nagios XI we currently have our timezone set to (UTC+00:00) Greenwich Mean Time : Dublin, what difference would it make setting it to (UTC+00:00) London. This is just so I understand what the difference is between the two. Also, what can we do to avoid losing an hours worth of data when the clocks go back and having an empty period when the clocks go forward?dwhitfield wrote:If you want XI to sync with British time, then you should set your time zones as London, rather than GMT.
Alternatively, you could set both to UTC (GMT is not technically an option in XI.
Thanks for your help.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Accounting for change to British Summer Time
Thank you for the clarificaiton.
The issue is likely that your server time is different than your XI time. If your server time is UTC, then things will be off by an hour in the summer.
# date
# hwclock
# grep date.timezone /etc/php.ini
# mysql -unagiosxi -pn@gweb -e "SELECT NOW();"
# service ntpd status
Also, can you send a screenshot of http://YOURSERVER/nagiosxi/admin/globalconfig.php
Technically speaking, Ireland does not follow British time, though as you point out, Irish time is synced with British time.
The issue is likely that your server time is different than your XI time. If your server time is UTC, then things will be off by an hour in the summer.
# date
# hwclock
# grep date.timezone /etc/php.ini
# mysql -unagiosxi -pn@gweb -e "SELECT NOW();"
# service ntpd status
Also, can you send a screenshot of http://YOURSERVER/nagiosxi/admin/globalconfig.php
Technically speaking, Ireland does not follow British time, though as you point out, Irish time is synced with British time.
Re: Accounting for change to British Summer Time
Cheers for that DWhitfield, I have attached a screenshot of the settings like you asked.
You do not have the required permissions to view the files attached to this post.
Re: Accounting for change to British Summer Time
I have had the commands you suggested and the results are attached. How we we get our clock to show correctly without it overwriting or losing any data?
Thanks very much.
Thanks very much.
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Accounting for change to British Summer Time
They should be set to London. On the surface they look the same but GMT does not account for summer time, and London time does.KMilton wrote:
In Nagios XI we currently have our timezone set to (UTC+00:00) Greenwich Mean Time : Dublin, what difference would it make setting it to (UTC+00:00) London. This is just so I understand what the difference is between the two. Also, what can we do to avoid losing an hours worth of data when the clocks go back and having an empty period when the clocks go forward?
Thanks for your help.