-
Notifications
You must be signed in to change notification settings - Fork 572
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 using YYYY-MM-DD format spans the next day too #9388
Comments
MAY be related to https://community.icinga.com/t/timeperiod-bug-include-and-exclude/9763 |
Describe the bugWe have the same problem with the timeperiod being active one more time. To ReproduceIn our problem it affects the timeperiod for notifications (here the object from the timepriod.conf):
This will send sms to johndoe on 2022-05-30 all day long (00:00-24:00)! Your Environment
|
I believe this has something to do with the "acorss midnight" feature https://icinga.com/docs/icinga-2/latest/doc/08-advanced-topics/#across-midnight I have tested by setting an exclude to be like this, which does work:
|
Duplicate of #8741 |
Describe the bug
When defining a TimePeriod for a specific day (like bank days) in the YYYY-MM-DD format (ex: 2022-06-06 for June 6th), and the current date is the next day (june 7th), icinga shows that the timeperiod is still active.
To Reproduce
/v1/objects/timeperiods?timeperiod=MY-TEST
/v1/objects/timeperiods?attrs=is_inside
also show that the timeperiod is still "inside" the next dayExpected behavior
On june 7th, the timeperiod should be over, and
is_inside
should be falseYour Environment
Include as many relevant details about the environment you experienced the problem in
Version used (
icinga2 --version
): r2.13.3-1 from icinga debian repositoryOperating System and version: Debian 11.3
Enabled features (
icinga2 feature list
):Disabled features: command compatlog debuglog elasticsearch gelf graphite icingadb influxdb influxdb2 livestatus opentsdb perfdata statusdata syslog
Enabled features: api checker ido-mysql mainlog notification
Icinga Web 2 version and modules (System - About):
Icinga Web 2 Version 2.10.1
Git commit 974729a6421c17fdb8bb1931623107cf6a90fc7e
PHP Version 7.4.28
Git commit date 2022-04-06
Icinga Documentation
Loaded Libraries
icinga/icinga-php-library 0.8.1
icinga/icinga-php-thirdparty 0.10.0
Loaded Modules
director 1.9.1 Configure
fileshipper 1.2.0 Configure
graphite 1.2.0 Configure
idoreports 0.10.0 Configure
incubator 0.13.0 Configure
monitoring 2.10.1 Configure
pdfexport 0.10.1 Configure
reporting 0.10.0 Configure
setup 2.10.1 Configure
Additional context
one machine for:
Add any other context about the problem here.
This behaviour may only apply to YYYY-MM-DD format. Using "monday 6 june 2022" works as expected.
It's not because the month number and day number are equal. I did other tests with other days and I have the same behaviour.
Is that normal that valid_end is not 1654552800 (2022-06-07 00:00:00) ?
Tested with two platforms (prod and dev environment with the same behaviour)
The text was updated successfully, but these errors were encountered: