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
Gunnar Beutner
e09fb88cae
Make sure functions are registered with the correct prefix
...
refs #12393
2016-08-10 16:33:17 +02:00
Gunnar Beutner
dc06209e4a
Move internal script functions into the 'Internal' namespace
...
fixes #12338
2016-08-10 06:55:44 +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
Gunnar Beutner
0d02b01c02
Use application start-up time for the IDO session token
...
fixes #12250
2016-07-29 08:40:10 +02:00
Michael Friedrich
dcfda534b1
Deprecation warning should include object type and name
...
fixes #12240
2016-07-28 17:43:50 +02:00
Michael Friedrich
ce3d7ab973
DB IDO: Do not clear {host,service,contact}group_members tables on restart
...
fixes #12210
2016-07-25 17:10:27 +02:00
Michael Friedrich
743a726752
state_filters_real shouldn't be visible in the API
...
fixes #12171
2016-07-19 20:09:39 +02:00
Gunnar Beutner
959e2501aa
Avoid duplicate entries in the icinga_objects table for commands
...
refs #12147
2016-07-15 09:40:39 +02:00
Gunnar Beutner
ea57f0045e
Fix deadlock in DbObject::SendVars{Config,Status}Update
...
fixes #12127
fixes #12085
2016-07-12 11:44:36 +02:00
Michael Friedrich
72facb1be0
DB IDO: Log a deprecation warning for categories
...
refs #12024
2016-07-07 15:44:31 +02:00
Michael Friedrich
124c80beab
Require DB IDO v1.14.1 for 2.5.0
...
fixes #11967
2016-07-07 12:27:56 +02:00
Michael Friedrich
f87f20e9ec
DB IDO: Do not populate logentries table by default
...
Not required by Icinga Web 2 and therefore obsolete as default.
fixes #12106
2016-07-06 11:52:20 +02:00
Michael Friedrich
091274e417
Change DB IDO 'categories' attribute to Array notation
...
Example:
categories = [ "DbCatProgramStatus", "DbCatState" ]
The old method with constants and OR is still supported but deprecated.
refs #11445
fixes #12024
2016-06-23 14:55:01 +02:00
Michael Friedrich
14fdb794e2
Allow strings in state and type filters (config, API)
...
fixes #11445
2016-06-23 14:52:45 +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
f4241ba185
DB IDO: Enhance ido check with schema info
...
fixes #11968
2016-06-17 12:43:05 +02:00
Michael Friedrich
6a46706668
DB IDO: Update schema version to 1.14.1
...
The least supported version is still 1.14.0
with the current changes.
refs #10069
refs #11967
2016-06-17 11:23:30 +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
90f102abf3
Ensure that program status updates are immediately updated in DB IDO
...
fixes #11767
2016-05-11 14:03:40 +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
67b7df3189
DB IDO: Fix user notification type filters
...
fixes #10766
2016-03-15 14:50:43 +01:00
Michael Friedrich
5b30c9ed2c
DB IDO: PArtially revert change for *group_members
...
Otherwise the index breaks.
refs #11103
2016-02-22 20:23:18 +01:00
Michael Friedrich
99dbb249de
DB IDO: Fix problem with hostgroup_members cleanup
...
fixes #11103
2016-02-08 11:05:27 +01:00
Michael Friedrich
4049cc0b9a
Fix: Deleting an object via API does not disable it in DB IDO
...
fixes #11065
2016-02-05 12:37:00 +01:00
Gunnar Beutner
f234bdd321
Fix crash in IdoCheckTask::ScriptFunc
...
refs #11014
2016-02-02 12:03:12 +01:00
Michael Friedrich
c2cf614d62
Remove debug output, part 2
...
refs #11014
2016-01-29 14:09:50 +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
Gunnar Beutner
1bf27011df
Fix incorrect is_active queries
...
fixes #10891
2016-01-11 14:23:16 +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
Gunnar Beutner
a393c8213e
Don't log IDO statistics when we're not connected
...
refs #10860
2015-12-17 12:09:42 +01:00
Michael Friedrich
6387bec049
Fix duplicate key violation for downtimes
...
refs #10829
2015-12-16 13:57:29 +01:00
Gunnar Beutner
ef8ba6e275
Implement additional query statistics for DB IDO
...
fixes #10860
2015-12-16 10:46:27 +01:00
Michael Friedrich
5b48559d75
Implement support for re-ordering groups of IDO queries
...
fixes #10855
2015-12-15 15:29:48 +01:00
Michael Friedrich
96fa29793c
Avoid duplicate config and status updates on startup
...
fixes #10765
2015-12-15 14:25:08 +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
Gunnar Beutner
15ca9987fa
Implement support for priorities in the WorkQueue class
...
fixes #8714
2015-12-10 17:06:00 +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
0285bcefb5
DB IDO: Fix group membership updates for runtime created objects
...
fixes #10604
2015-11-11 12:31:52 +01:00
Gunnar Beutner
e3c75faabc
Implement support for recursive object locks
...
fixes #10596
2015-11-11 10:21:30 +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