Page 1 of 2
Accounting for change to British Summer Time
Posted: Tue Apr 11, 2017 6:22 am
by KMilton
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
Re: Accounting for change to British Summer Time
Posted: Tue Apr 11, 2017 9:11 am
by tacolover101
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.
Re: Accounting for change to British Summer Time
Posted: Tue Apr 11, 2017 10:47 am
by dwhitfield
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:
Code: Select all
ps -A | grep ntp
service ntpd status
Re: Accounting for change to British Summer Time
Posted: Fri Aug 04, 2017 6:45 am
by KMilton
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.
Re: Accounting for change to British Summer Time
Posted: Fri Aug 04, 2017 10:43 am
by dwhitfield
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).
Re: Accounting for change to British Summer Time
Posted: Mon Aug 07, 2017 5:30 am
by KMilton
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.
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.
Re: Accounting for change to British Summer Time
Posted: Mon Aug 07, 2017 3:00 pm
by dwhitfield
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.
Re: Accounting for change to British Summer Time
Posted: Mon Aug 14, 2017 8:21 am
by KMilton
Cheers for that DWhitfield, I have attached a screenshot of the settings like you asked.
Re: Accounting for change to British Summer Time
Posted: Mon Aug 14, 2017 8:28 am
by KMilton
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.
Re: Accounting for change to British Summer Time
Posted: Mon Aug 14, 2017 1:16 pm
by scottwilkerson
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.
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.