mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 06:55:53 +03:00
[GH-ISSUE #350] TimeZone #270
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#270
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Rustymage on GitHub (Apr 1, 2020).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/350
Morning,
Maybe I'm being slightly dense but my timezone is now an hour out and it's causing my notifications to continually trigger.
I'm in the London BST timezone using docker to run the Healthchecks container.
How can I update my timezone or setup my system to not trigger the alerts when the timezones from container to running check do not line up?
Thanks in advance :)
@cuu508 commented on GitHub (Apr 1, 2020):
Hi @Rustymage, make sure the timezone for individual checks match the timezone on your monitored systems.
You can see and change the timezone in check details page:
Also related: https://healthchecks.io/faq/#timezones
@Rustymage commented on GitHub (Apr 1, 2020):
As an example:
My server cron is setup to backup and ping Healthchecks at
0120(GMT BST), it does this successfullyMy Healthchecks cron job is awaiting a ping at
0120(Europe/London) with a grace time of 60 minutes, the timestamp on the ping from the server is2020-04-01T01:20:00.491177+00:00The Healthchecks container sends out an alert at
0120, clearly just before the server pings itThe date on my server is:
Wed 1 Apr 08:48:07 BST 2020The date on the Healthchecks container is:
Wed Apr 1 07:48:29 UTC 2020Is it recommended to restart the container and server?
@cuu508 commented on GitHub (Apr 1, 2020):
What is the configured timezone for the specific check – what do you see in the "Check Details" page?
Could you post a screenshot of the check details page, with the "Schedule" and "Log" sections visible, and any sensitive bits edited out?
@Rustymage commented on GitHub (Apr 1, 2020):
@cuu508 commented on GitHub (Apr 1, 2020):
Thanks for posting the screenshots!
To me it looks like the pings from last few days are sent an hour late. The ping is expected at 3:00 BST, which is 2:00 UTC. Instead in the log we see it arrives at 3:00 UTC.
What are you using to schedule the daily runs? If it's cron, have you by any chance changed server's timezone recently? cron daemon may need to be restarted to pick up the timezone change.
@Rustymage commented on GitHub (Apr 1, 2020):
The timezone has auto changed when I entered BST. I'll restart and check back.
Cheers
@cuu508 commented on GitHub (Apr 1, 2020):
If the server has systemd, what's the output of
timedatectl statusand what is in your/etc/timezone? Are you using cron as the scheduler?@Rustymage commented on GitHub (Apr 2, 2020):
So I found the issue. It was a container with the incorrect time. Thanks for the assistance. I learnt to triple check containers :)
@cuu508 commented on GitHub (Apr 6, 2020):
Thanks, good to hear you tracked down the issue!