-
Notifications
You must be signed in to change notification settings - Fork 570
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
TimePeriod objects should support timezones #5374
Comments
Do you have a specific configuration example and logs? I don't understand the issue here nor on the provided URL. |
Hi @dnsmichi In future release, could be good, if in the host definitions may be possible define the host timezone that, if set, calculate the start and ending time in local time
|
This would be very useful for us too. The general mantra is to keep things in UTC (especially for logs), but notifications and downtimes should have the ability to respect localtime. Meaning, our weekly sunday downtime would happen at 14:00 each time, not 13:00 or 14:00 based on DST. Though... when setting up a recurring DT. not sure I understand. Since we are UTC-4, asking for 14:00 should have been 18:00, but had to use: sunday = "19:00-22:00" to achieve our sunday DT for 14:00 localtime. I am UTC-4 right now as the server time is 14:17 and local is 10:17
...yet I had to use 19:00 for the recurring dt object to target 14:00 for tomorrow with current UTC-4 in effect. Maybe this is a misunderstanding on my part. I didn't want to open an issue if I just don't have enough coffee in my system yet :) |
I strongly support this feature request. Most data centres I deal with are running on UTC, but none of the support organisations are. The current implementation of the TimePeriods can't deal with this very at all ... while, i.e. "8to5" must be coded as "07:00-16:00" in the winter, it need to be changed to "06:00-15:00" when summer time becomes active. Being able to specify a time zone in the TimePeriod object would magically fix this, and besides it would get rid of any uncertainty when configuring downtimes, notifications and checks. |
It would be great for us too! |
As a global organization monitoring systems in remote offices and stores that get shut off at the 'end of the day' local time, this would be huge for us as well. |
I'd like to see such a feature as well. |
+1, would be very useful |
This would be very useful for notifications for services that have "next business day" service level agreements. Basing the notification time off of the server (which is probably in UTC, but in some organizations might be in a different local time zone than the service organization) makes configuring these notification time periods more complicated than necessary. |
Blocked by #7288. |
looks like the blocker is resolved, and we can continue? +1 here too for timezone support. |
An update about the current status would be indeed great. |
As far as I know, there is nobody working on this currently. |
Well, as I'm getting bitten by this too right now, I would like t add my support and ask: What is this blocked by? What can we as the community provide to move this forward? What I'm seeing is a service that runs on a machine in the timezone 'Europe/Berlin', while icinga runs in UTC. What I personally would like is a configuration like this:
My workaround is to make the flexible downtime twice as wide to account for DST, but it's a hacky solution. |
I see two problems with implementing this:
So supporting this would likely require a rewrite of the whole time period evaluation code and at the moment I don't even know how that would look like:
|
Maybe it would help if the SchduledDowntime would support a timezone and state filter ala "Europe/Berlin" & summer|winter. |
@julianbrost I'm not a windows programmer, and googling does suggest that this timezone format is not easily parseable, as Windows does not use the IANNA database. If you want to do this without new dependencies, I would guess that the best way forward is to only support the native way of entering timezones on the system. i.e. If new dependencies are an option, and since you already are using boost, I would try to go with a boost library. It also seems possible to ship timezone information as csv for boost. @community do you have any other suggestions for this? In my code base, I would roughly try to serialize changes like this:
Step 1. can probably be fast, step 2 will likely take quite some time to get right, step 3 can probably be worked on independently of step 2 whenever the need arises, but has the potential to make config handling quite a bit nicer. |
This library also looks really nice. I'm not enough of a C++ programmer to really understand what he's saying, but it seems that this library has become part of c++20's standard library. |
I guess this is another thing for Icinga Notifications, like #8741 (comment). |
I don't agree. TimePeriods are also used for scheduling checks, which isn't covered by notifications. |
Hi,
as in the thread:
https://monitoring-portal.org/index.php?thread/40869-set-notifications-timeperiod-to-local-time-zone-not-utc/&postID=251295#post251295
the notification are set in UTC timezone, i had to convert my local time (Rome) to UTC and manually change it at every Daylight Saving change.
The same had to be done for different timezone clients
Maybe good the possibility to set timezone in host, to convert (automatically) notification time in local time (based on host timezone)
TY for all good work you done
The text was updated successfully, but these errors were encountered: