Michael Friedrich
d84872f075
DB IDO: Really do not clear downtimes on checkable upsert
...
refs #12258
refs #12288
2016-08-11 17:43:39 +02:00
Michael Friedrich
41094489b6
DB IDO: Fixed downtime start does not update actual_start_time
...
fixes #12401
2016-08-11 12:10:27 +02:00
Michael Friedrich
00f05a8e7e
DB IDO: Do not try to delete downtimes when using the session_token
...
Missed it after modifying the comments.
refs #12258
refs #12288
2016-08-03 16:15:22 +02:00
Michael Friedrich
cd5c9366cf
DB IDO: Use upsert and session token for comment/downtime updates
...
refs #12258
fixes #12288
2016-08-02 14:37:16 +02:00
Michael Friedrich
409a385590
DB IDO: Ensure that delete queries for comments/downtimes are matching the index
...
fixes #11993
2016-06-20 17:38:01 +02:00
Michael Friedrich
0ce41399e0
DB IDO: Ensure to delete outdated comments/downtimes for host/service objects
...
fixes #11688
2016-06-03 14:40:37 +02:00
Michael Friedrich
ba82d2eb20
Move CalculateExecutionTime and CalculateLatency into the CheckResult class
...
fixes #11751
2016-05-10 12:16:49 +02:00
Michael Friedrich
23ab6cf78b
Fix: Expired downtimes are not removed
...
fixes #11711
2016-05-02 15:32:46 +02:00
Michael Friedrich
83e0bcddce
IDO: Ensure that the notification insert id is passed to contactnotification inserts
...
We cannot add the notification insert id directly
to the following contactnotifications queries. Instead
we need to pass a DbValue reference which gets set after
the notification insert id is calculated.
The contactnotifications insert queries are fired as query
group calling CanExecuteQuery() and FieldToEscapedString().
If the notification id does not exist yet, the queries are
moved to the end of the queue.
Once the contactnotifications queries are fired the DbValue
reference is destroyed.
This patch also removes the old notification insert id cache
which was broken in many ways.
fixes #11387
2016-03-29 15:12:24 +02:00
Michael Friedrich
98e1d70dab
DB IDO: Fix that downtime is not in effect after restart
...
fixes #10843
2016-03-23 13:42:00 +01:00
Michael Friedrich
b960850ce3
DB IDO: Only update 'next_check' column when manually scheduling a check
...
Otherwise the changes from #7287 already take care of setting
the proper next check time from inside ProcessCheckResult().
There is no need to use the generic OnNextCheckChanged signal
but instead we're using a new one, locally just for DB IDO.
fixes #11019
2016-01-22 18:42:15 +01:00
Gunnar Beutner
599929b0f6
Update copyright headers for 2016
2016-01-12 08:29:59 +01:00
Michael Friedrich
9c8fdf06cf
Fix crash in DbEvents::RemoveCommentInternal()
...
Missing multiple queries as implemented with RemoveDowntimeInternal().
fixes #10883
2015-12-18 10:52:04 +01:00
Michael Friedrich
6387bec049
Fix duplicate key violation for downtimes
...
refs #10829
2015-12-16 13:57:29 +01:00
Michael Friedrich
da3d21091c
Fix priority ordering for IDO queries
...
fixes #10829
refs #8714
2015-12-15 11:58:50 +01:00
Gunnar Beutner
372cf07bc4
Clean up the FinishAsyncQueries code a bit
...
refs #8714
2015-12-14 10:34:12 +01:00
Michael Friedrich
0813e69a41
Fix DB IDO events for next_check, etc. updates
...
refs #10817
2015-12-10 15:24:28 +01:00
Michael Friedrich
64c936d387
API Actions: Remove -by-id from actions and require names for comments and downtimes
...
The documentation is updated as well. Furthermore actions provide
detailed error information in case of an exception.
Includes DB IDO schema updates.
fixes #10512
2015-11-06 17:06:12 +01:00
Michael Friedrich
1b9f0a8c77
Add the unique_id for comments/downtimes next to legacy_id to DB IDO
...
fixes #10431
2015-10-30 11:25:07 +01:00
Michael Friedrich
9485938d32
Fix: Unique constraint violation with multiple comment inserts in DB IDO
...
fixes #10491
2015-10-29 16:12:53 +01:00
Gunnar Beutner
050c520b2a
Convert Comment/Downtime to config objects
...
fixes #9777
2015-10-28 17:56:29 +01:00
Michael Friedrich
de8aae90e4
DB IDO: Add object_id where clause for icinga_downtimehistory
...
fixes #10110
2015-10-28 17:12:23 +01:00
Michael Friedrich
498ff3c1ee
Add a debug log message for updating the program status table in DB IDO
...
fixes #10379
2015-10-15 18:43:30 +02:00
Michael Friedrich
50cd694142
Fix wrong calculation for host compat state UNREACHABLE
...
fixes #10058
2015-09-04 13:24:41 +02:00
Gunnar Beutner
071d2f18fb
Rename DynamicObject/DynamicType to ConfigObject/ConfigType
...
fixes #9914
2015-08-15 20:40:41 +02:00
Michael Friedrich
d7970f5bb1
Implement modified attributes v2
...
refs #9081
refs #9093
2015-08-15 20:07:10 +02:00
Michael Friedrich
45a0f09532
Fix unused variable in dbevents
...
refs #9055
2015-06-24 14:12:18 +02:00
Michael Friedrich
b921439f38
Fix DbEvents::AddCheckableCheckHistory argument
...
refs #9055
2015-04-27 15:06:14 +02:00
Michael Friedrich
7af41e93c0
Fix that downtimes are always "fixed" even if scheduled as "flexible"
...
fixes #9142
2015-04-25 15:06:29 +02:00
Michael Friedrich
2254ac442f
DB IDO: Fix wrong check result timestamp for historical tables
...
refs #9055
2015-04-24 18:14:57 +02:00
Gunnar Beutner
e4f4c6bc2d
Remove deadlock in db_ido
...
refs #9017
2015-04-14 15:09:50 +02:00
Michael Friedrich
3fc890a2da
DB IDO: Fix status table scheduled_downtime_depth column not updated on downtime removal/end
...
fixes #9017
2015-04-11 11:40:14 +02:00
Michael Friedrich
3d4be0ea58
Don't update scheduleddowntime table w/ trigger_time column when only adding a downtime
...
fixes #9014
2015-04-08 17:06:53 +02:00
Michael Friedrich
4a64d4991b
DB IDO: Fix {host,service}checks command_line value is "Object of type 'icinga::Array'"
...
fixes #8438
2015-02-15 00:24:05 +01:00
Michael Friedrich
48fa1a1418
DB IDO: Fix duplicate entries in scheduleddowntime table
...
fixes #8425
2015-02-12 13:19:27 +01:00
Michael Friedrich
19c374040e
Fix missing persistent_comment, notify_contact columns for acknowledgement table
...
fixes #7871
refs #8298
2015-02-07 23:24:16 +01:00
Michael Friedrich
bb2338631f
Fix last_hard_state missing in StatusDataWriter
...
fixes #8383
2015-02-07 19:37:35 +01:00
Michael Friedrich
78bfd0204c
Update copyright year
2015-01-22 12:00:23 +01:00
Michael Friedrich
d11286e9a5
DB IDO: Update child object reachability if parentchanges to !{OK,UP}
...
fixes #7683
2014-12-12 16:12:05 +01:00
Gunnar Beutner
e52b2b6509
Fix incorrect IDO queries
...
fixes #7634
2014-11-11 16:36:20 +01:00
Gunnar Beutner
4df3fd4451
Add missing category type for some IDO queries
...
fixes #7625
2014-11-10 13:21:33 +01:00
Gunnar Beutner
478f03b49a
Replace boost::shared_ptr with boost::intrusive_ptr
...
refs #7622
2014-11-09 16:54:41 +01:00
Gunnar Beutner
2d5e9514a5
Refactor logging code
2014-10-19 17:52:17 +02:00
Gunnar Beutner
b18f57a745
Remove logger_fwd.hpp
2014-10-19 14:50:39 +02:00
Gunnar Beutner
65bec9e904
Clean up some parts of the code
2014-08-17 17:57:41 +02:00
Michael Friedrich
4bfa068e46
Change log message identifier for libdb_ido.
...
Refs #6346
2014-05-28 14:42:01 +02:00
Gunnar Beutner
632026cd9f
Rename C++ header files.
...
Fixes #6291
2014-05-25 16:27:14 +02:00
Gunnar Beutner
fceeeba05e
Fix compiler warnings.
...
Fixes #5823
2014-05-22 10:28:21 +02:00
Gunnar Beutner
9c3e399188
Remove unnecessary includes.
...
Fixes #6189
2014-05-11 18:11:32 +02:00
Michael Friedrich
76658e7ddd
DB IDO: Add Enable* db events.
...
Refs #6151
2014-05-10 16:52:48 +02:00