Commit Graph

82 Commits

Author SHA1 Message Date
Michael Friedrich 187a61dfaa Fix duplicate key violation for downtimes
refs #10829
2016-02-23 09:15:48 +01:00
Gunnar Beutner 6a8f97f6ef Fix crash in Ido*Connection::InternalExecuteMultipleQueries
fixes #10862
2016-02-23 09:15:42 +01:00
Gunnar Beutner 30c445a5ee Implement additional query statistics for DB IDO
fixes #10860
2016-02-23 09:15:16 +01:00
Michael Friedrich 2b86039435 DB IDO: Add a log message when the connection handling is completed
fixes #10857
2016-02-23 09:14:39 +01:00
Michael Friedrich c0da6cbb6a Implement support for re-ordering groups of IDO queries
fixes #10855
2016-02-23 09:14:04 +01:00
Michael Friedrich 634b3d7bc4 Avoid duplicate config and status updates on startup
fixes #10765
2016-02-23 09:13:37 +01:00
Michael Friedrich 36c170d5dc Fix invalid notification_id in DB IDO query
fixes #8976
2016-02-23 09:13:02 +01:00
Michael Friedrich 2bc1d32caa Fix priority ordering for IDO queries
fixes #10829
refs #8714
2016-02-23 09:09:06 +01:00
Gunnar Beutner 02184ad58f Clean up the FinishAsyncQueries code a bit
refs #8714
2016-02-23 09:09:06 +01:00
Gunnar Beutner a40fc653ef Implement support for priorities in the WorkQueue class
fixes #8714
2016-02-23 09:09:06 +01:00
Gunnar Beutner 2e930826e3 Make sure that all strings in the IDO database are UTF8-encoded
fixes #10554
2016-02-23 09:08:32 +01:00
Gunnar Beutner c544c686a8 Update copyright headers for 2016 2016-01-12 08:31:24 +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 dda05f0322 Fix: Async mysql queries aren't logged in the debug log
fixes #10540
2015-11-05 15:43:09 +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 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
Michael Friedrich d618762dad Export original attributes in DB IDO and Livestatus
fixes #10392
2015-10-22 15:49:42 +02:00
Michael Friedrich c3385e6e38 DB IDO should provide its connected state via /v1/status
fixes #10383
2015-10-16 13:02:41 +02:00
Gunnar Beutner d24af1e639 Fix incorrect value for IdoMysqlConnection::m_AffectedRows
refs #10190
2015-09-28 13:19:42 +02:00
Jean-Marcel Flach 4ef9761fee Implement status api handler
Global statistics, features, etc.

fixes #10116
2015-09-23 16:59:07 +02:00
Gunnar Beutner 6fa58a520c Implement config object sync
Adds object version.

refs #9927
2015-09-17 14:20:43 +02:00
Gunnar Beutner d118b71a2a Fix compiler warnings
fixes #9929
2015-08-18 07:46:04 +02:00
Gunnar Beutner 7fc7cde6a1 Build fix for Windows 2015-08-17 19:36:27 +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 dcef213c8f Fix overflow in freshness_threshold column (smallint) w/ DB IDO MySQL
fixes #9576
2015-07-14 18:20:08 +02:00
Michael Friedrich a788de679c DB IDO: Add zones, zonestatus tables
refs #9286
2015-07-14 18:09:24 +02:00
Michael Friedrich 0c0f53bc36 Fix schema version 1.14.0
refs #9027
2015-05-04 11:35:41 +02:00
Eric Lippmann 1e0df43127 Add yet empty MySQL schema upgrade to IDO version 1.14.0
refs #9027
2015-05-04 11:35:41 +02:00
Gunnar Beutner f8b48cc03b Build fix for db_ido_mysql
refs #8890
2015-03-28 12:22:40 +01:00
Gunnar Beutner 72a7b08480 Move implementation code from thpp files into separate files
fixes #8890
2015-03-28 11:08:12 +01:00
Gunnar Beutner ec7224e3ed Generate C++ code for type validators
fixes #7709
fixes #8867
2015-03-27 07:59:27 +01:00
Gunnar Beutner a4852dae67 Fix assertion failure in IdoMysqlConnection::FieldToEscapedString
fixes #8865
2015-03-26 07:16:22 +01:00
Gunnar Beutner 316eee799e Merge COMMIT and BEGIN into the previous MySQL query
refs #8738
2015-03-14 07:58:55 +01:00
Gunnar Beutner c7c49d7219 Implement support for CLIENT_MULTI_STATEMENTS
fixes #8738
2015-03-13 20:23:14 +01:00
Gunnar Beutner cd20044e4f Implement the pending_queries metric for the IDO check task
refs #8688
2015-03-13 12:00:30 +01:00
Michael Friedrich 8573636cc9 Fix crash in Dependency::Stop()
This partially reverts the fix in #8436

fixes #8687
refs #8436
2015-03-12 11:44:55 +01:00
Gunnar Beutner a4d37132bf Implement a check for IDO database connections
fixes #8688
2015-03-12 10:19:12 +01:00
Gunnar Beutner 94fde1a6b2 Add support for using the 1.12.0 IDO database schema
fixes #8689
2015-03-12 10:19:12 +01:00
Gunnar Beutner bb4beefca9 Add missing "return"s in Ido*Connection::Reconnect 2015-03-05 15:57:46 +01:00
Gunnar Beutner 4d63351561 Fix some compile warnings 2015-03-04 08:26:15 +01:00
Jean-Marcel Flach 9ed21563ff Use RequestShutdown with exitcode instead of Application::Exit
fixes #8436
2015-02-27 14:43:30 +01:00
Gunnar Beutner 6dd33fa751 Make sure to not ignore fields which are set to an empty string
fixes #8496
2015-02-23 15:25:04 +01:00
Michael Friedrich 1c4501da19 DB IDO: Require schema version 1.13.0
refs #8425
2015-02-12 14:22:24 +01:00
Michael Friedrich 37bf9d4819 DB IDO: Fix header in sql files 2015-02-12 13:59:19 +01:00
Michael Friedrich 9d97094390 DB IDO: Fix duplicate entries in {host,service}depencencies table
fixes #7765
2015-02-12 13:19:27 +01:00