-
Notifications
You must be signed in to change notification settings - Fork 579
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
[dev.icinga.com #9142] Downtimes are always "fixed" #2951
Comments
Updated by mfriedrich on 2015-04-25 12:51:22 00:00
Apparently Convert::ToBool()'s behavior changed in the past months. The external command processor is passing a string token to ToBool() which always returns true.
Investigating on a fix. |
Updated by mfriedrich on 2015-04-25 13:05:53 00:00
|
Updated by mfriedrich on 2015-04-25 13:07:44 00:00
|
Updated by mfriedrich on 2015-04-25 13:08:40 00:00
Applied in changeset 7af41e9. |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/9142
Created by mjentsch on 2015-04-21 14:17:24 00:00
Assignee: mfriedrich
Status: Resolved (closed on 2015-04-25 13:08:40 00:00)
Target Version: 2.3.5
Last Update: 2015-04-25 13:08:40 00:00 (in Redmine)
Independently from whether is set the downtime as fixed or flexible, the value of the IDO table "is_fixed" will always be set to true.
The following Downtime was created as "flexible", the flag "is_fixed" in the command is set to 0, see log:
@ [2015-04-21 14:08:21 0000] information/Checkable: Checking for configured notifications for object 'test-random-1!service-flapping-4'
[2015-04-21 14:08:21 0000] information/Checkable: Checkable 'test-random-1!service-flapping-4' does not have any notifications.
[2015-04-21 14:08:22 0000] information/Checkable: Checking for configured notifications for object 'test-flap-3!service-flapping-3'
[2015-04-21 14:08:22 0000] information/Checkable: Checkable 'test-flap-3!service-flapping-3' does not have any notifications.
[2015-04-21 14:08:33 0000] information/ExternalCommandListener: Executing external command: [1429625313] DISABLE_PASSIVE_SVC_CHECKS;test-flap-5;ping4
[2015-04-21 14:08:34 0000] information/Checkable: Checking for configured notifications for object 'test-flap-2!service-flapping-3'
[2015-04-21 14:08:34 0000] information/Checkable: Checkable 'test-flap-2!service-flapping-3' does not have any notifications.
[2015-04-21 14:08:38 0000] information/Checkable: Checking for configured notifications for object 'test-random-3!service-flapping-2'
[2015-04-21 14:08:38 0000] information/Checkable: Checkable 'test-random-3!service-flapping-2' does not have any notifications.
[2015-04-21 14:08:43 0000] information/ExternalCommandListener: Executing external command: [1429625323] SCHEDULE_SVC_DOWNTIME;test-down-8;ping4;1429625318;1429628918;0;0;7200;icingaadmin;asdfasdf@
The corresponding object in the IDO-Database (MySQL):
*************************** 7. row *************************** scheduleddowntime_id: 198 instance_id: 1 downtime_type: 1 object_id: 141 entry_time: 2015-04-21 14:08:43 author_name: icingaadmin comment_data: asdfasdf internal_downtime_id: 33 triggered_by_id: 0 is_fixed: 1 duration: 7200 scheduled_start_time: 2015-04-21 14:08:38 scheduled_end_time: 2015-04-21 15:08:38 was_started: 0 actual_start_time: 0000-00-00 00:00:00 actual_start_time_usec: 0 is_in_effect: 0 trigger_time: 0000-00-00 00:00:00 endpoint_object_id: 1 7 rows in set (0.00 sec)
Changesets
2015-04-25 13:06:29 00:00 by mfriedrich 7af41e9
2015-04-25 13:07:58 00:00 by mfriedrich c59a8c8
The text was updated successfully, but these errors were encountered: