Skip to content
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

timezone in timeperiod #373

Open
llange opened this issue Nov 9, 2021 · 1 comment
Open

timezone in timeperiod #373

llange opened this issue Nov 9, 2021 · 1 comment

Comments

@llange
Copy link

llange commented Nov 9, 2021

Most of my time periods are based on local time (our production planning, our support team are based on office hours).
However a few of them are tracking UTC-based events.
We are in a Daylight Saving Time country, so our offset to UTC (still) changes twice a year.

To the best of my knowledge, all Naemon (and Nagios) timeperiods use the process timezone ; there is no way to define a specific timezone for a timeperiod.

So far we handle local-time-based time periods with both the server timezone and/or the use_timezone parameter ; and for the UTC-based we update them manually twice a year.

While we can argue that countries will one day abolish DST (at least I believe in Europe it is the idea), and that changing a few configurations twice a year is not so huge ; I was wondering if extending the timeperiod definition to handle timezone would be useful to other use cases ; and would be an enhancement worth considering ?

@sni
Copy link
Contributor

sni commented Nov 11, 2021

The use_timezone option simply sets the TZ environment variable. Afaik nothing else happens with that. Having a timezone setting for each timeperiod would indeed be nice. I am just a bit worried about what code implications this would have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants