Accounting for change to British Summer Time

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
KMilton
Posts: 8
Joined: Mon Oct 24, 2016 4:22 am

Accounting for change to British Summer Time

Post 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
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: Accounting for change to British Summer Time

Post 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.
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

Post 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
KMilton
Posts: 8
Joined: Mon Oct 24, 2016 4:22 am

Re: Accounting for change to British Summer Time

Post 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.
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

Post 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).
KMilton
Posts: 8
Joined: Mon Oct 24, 2016 4:22 am

Re: Accounting for change to British Summer Time

Post 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.
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

Post 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.
KMilton
Posts: 8
Joined: Mon Oct 24, 2016 4:22 am

Re: Accounting for change to British Summer Time

Post by KMilton »

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.
KMilton
Posts: 8
Joined: Mon Oct 24, 2016 4:22 am

Re: Accounting for change to British Summer Time

Post 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.
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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked