Gunnar Beutner
06cb3cf875
Another build fix for Windows
...
refs #9182
2016-08-31 13:43:50 +02:00
Gunnar Beutner
68dceaab06
Replace boost::exception_ptr with std::exception_ptr
...
refs #9182
2016-08-30 20:46:23 +02:00
Gunnar Beutner
30762e5330
Set versions for all internal libraries
...
fixes #12552
2016-08-25 17:56:18 +02:00
Gunnar Beutner
288413f046
Replace BOOST_FOREACH with range-based for loops
...
fixes #12538
2016-08-25 06:46:17 +02:00
Gunnar Beutner
78c249b96b
Fix compiler warnings in DB IDO
...
refs #12534
2016-08-25 05:00:46 +02:00
Gunnar Beutner
ae1ab5f865
Implement unit tests for state changes
...
fixes #12530
2016-08-24 19:45:52 +02:00
Gunnar Beutner
4c54cddec8
Fix problem with duplicate INSERTs for the same key columns
...
fixes #12461
fixes #12458
2016-08-17 13:35:10 +02:00
Gunnar Beutner
2e8d3d3934
Implement support for incremental IDO updates
...
fixes #12435
2016-08-15 14:43:11 +02:00
Gunnar Beutner
ed53366490
Avoid duplicate IDO config updates at startup
...
fixes #12417
2016-08-13 23:31: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
53930e321c
DB IDO: Ensure that queries are not executed if categories don't match
...
refs #12147
refs #12147
2016-08-02 14:27:20 +02:00
Michael Friedrich
73417275f6
Fix incorrect index drop in pgsql.sql
...
refs #12210
2016-08-02 11:05:48 +02:00
Michael Friedrich
7d78c53dd8
Fix incorrect session_token index for PostgreSQL
...
refs #12210
2016-08-01 15:04:47 +02:00
Michael Friedrich
32b37f0db9
Fix missing session_token column
...
refs #12210
2016-08-01 09:37:10 +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
ce3d7ab973
DB IDO: Do not clear {host,service,contact}group_members tables on restart
...
fixes #12210
2016-07-25 17:10:27 +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
Michael Friedrich
a0a5989181
Add missing index on statehistory table for DB IDO cleanup
...
fixes #12107
2016-07-06 12:17:41 +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
7f56a04dd5
DB IDO: Add missing indexes for icinga_endpoints* and icinga_zones* tables
...
fixes #10066
2016-06-22 12:56:24 +02:00
Michael Friedrich
f10289aa71
DB IDO: Add missing object_id index for icinga_{scheduleddowntime,comments} tables
...
fixes #10070
refs #11947
2016-06-20 17:15:09 +02:00
Michael Friedrich
f610e56a59
DB IDO: Fix missing schema version update in {mysql,pgsql}.sql
...
refs #10069
refs #11967
2016-06-20 16:17:06 +02:00
Lee Clemens
759818d289
DB IDO: Make check_source a varchar(255) column
...
fixes #10069
Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2016-06-17 11:03:26 +02:00
Gunnar Beutner
d415ff7373
Add missing OnConfigLoaded calls in Ido{My,Pg}sqlConnection
...
fixes #11951
2016-06-16 14:22:20 +02:00
Gunnar Beutner
ff57b0ccd6
Add name attribute for the WorkQueue class
...
fixes #10816
2016-06-14 09:08:04 +02:00
Gunnar Beutner
93da47a670
Fix PostgreSQL warnings on startup
...
fixes #11798
2016-05-17 10:32:38 +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
Gunnar Beutner
4a32211de2
Fix crash in Ido{Mysql,Pgsql}Connection::ExecuteMultipleQueries
...
fixes #11639
2016-04-21 09:17:40 +02:00
Michael Friedrich
d5c0d7366d
Fix: Failed assertion in IdoPgsqlConnection::FieldToEscapedString
...
fixes #11635
2016-04-20 18:21:39 +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
04a4049a4d
Increase query queue size for testing
...
refs #10963
2016-02-12 14:15:24 +01:00
Gunnar Beutner
599929b0f6
Update copyright headers for 2016
2016-01-12 08:29:59 +01:00
Michael Friedrich
6387bec049
Fix duplicate key violation for downtimes
...
refs #10829
2015-12-16 13:57:29 +01:00
Gunnar Beutner
346c0cbb3c
Fix crash in Ido*Connection::InternalExecuteMultipleQueries
...
fixes #10862
2015-12-16 11:29:06 +01:00
Gunnar Beutner
ef8ba6e275
Implement additional query statistics for DB IDO
...
fixes #10860
2015-12-16 10:46:27 +01:00
Michael Friedrich
1add333a57
DB IDO: Add a log message when the connection handling is completed
...
fixes #10857
2015-12-15 16:50:17 +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
0239acc48e
Fix invalid notification_id in DB IDO query
...
fixes #8976
2015-12-15 11:59:06 +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
15ca9987fa
Implement support for priorities in the WorkQueue class
...
fixes #8714
2015-12-10 17:06:00 +01:00
Gunnar Beutner
fba0b493cd
Make sure that all strings in the IDO database are UTF8-encoded
...
fixes #10554
2015-12-10 12:26:19 +01:00
Gunnar Beutner
d78a081727
Improve performance data for DB IDO
...
refs #9079
2015-11-07 07:51:41 +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
3b902b51e2
Change session_token to integer timestamp
...
fixes #10529
2015-11-05 18:05:30 +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
339c0b6d84
Fix missing field initializer in DB IDO
...
refs #10436
2015-10-29 22:27:09 +01:00
Michael Friedrich
4d784dd075
DB IDO: Add an index for CV session delete
...
The DELETE statement might become painfully slow on
large installations.
refs #10436
2015-10-29 16:18:49 +01:00
Michael Friedrich
cf5735e3df
DB IDO: Remove deleted custom variables
...
We cannot clear the custom variable tables on startup and then re-insert
all known custom vars. Instead we "fixed" it by leaving them
in the database only updating their value if changed. We certainly
forgot about deleted custom vars at that point.
Since the older fix must stay in place, we'll use a session
token stored in the backend to check whether the custom
variable has been updated/inserted in the current session, or not.
If the session token does not match, the custom vars are deleted
at the end of the config dump. Ugly but fairly the only performant
solution as CVs don't have an object_id.
fixes #10436
2015-10-29 16:00:06 +01:00
Gunnar Beutner
5ad0c67485
Fix: IDO tries to execute empty UPDATE queries
...
fixes #10473
2015-10-28 07:46:04 +01:00