Commit Graph

3126 Commits

Author SHA1 Message Date
Jean Flach 2052edff9f Refactor String-Escape in repositoryutility
fixes #10989
2016-02-23 10:46:20 +01:00
Michael Friedrich abce99daff Fix: Escaped sequences not properly generated with 'node update-config'
fixes #10989
2016-02-23 10:46:20 +01:00
Jean Flach fd85379f5c Rephrase some log messages
refs #11122
2016-02-23 10:46:19 +01:00
Jean Flach 09b7f39e86 Fix client not closing connections
fixes #11122
2016-02-23 10:46:19 +01:00
Michael Friedrich f6378c9417 Increase query queue size for testing
refs #10963
2016-02-23 10:46:19 +01:00
Gunnar Beutner fc90265332 Ensure that checks are not scheduled for command_endpoint fake hosts
refs #10963
2016-02-23 10:46:18 +01:00
Gunnar Beutner c415dd3468 Remove redundant log messages
refs #10963
2016-02-23 10:46:18 +01:00
Gunnar Beutner 7985e93ca0 Make sure we're not running command_endpoint-based checks more than once
refs #10963
2016-02-23 10:46:18 +01:00
Gunnar Beutner 80fdccc43a Add missing SetSyncing() call
refs #10963
2016-02-23 10:46:18 +01:00
Gunnar Beutner 3cfa8718b4 Skip log replay for endpoints with log_duration = 0
refs #10963
2016-02-23 10:46:17 +01:00
Gunnar Beutner 087ad3fdf4 Only build leak detection code when I2_LEAK_DEBUG is set
refs #10963
2016-02-23 10:46:17 +01:00
Gunnar Beutner b227dc77bf Check the certificate name when reconnecting to an instance
refs #10963
2016-02-23 10:46:17 +01:00
Gunnar Beutner badeea7604 Decrease memory usage for the Object class
refs #10963
2016-02-23 10:46:13 +01:00
Gunnar Beutner abfacd9e56 Improve debug support for analyzing memory leaks
refs #10963
2016-02-23 09:57:49 +01:00
Jean Flach e80b335edf Plug two memory leaks
refs #10963
2016-02-23 09:57:40 +01:00
Jean Flach 0a6f15c475 Replace boost-base64 with an openssl implementation
Also add unit tests

fixes #10714
2016-02-23 09:57:18 +01:00
Gunnar Beutner 7f774024d9 Fix: "node setup" tries to chown() files before they're created
fixes #11204
2016-02-23 09:52:36 +01:00
Gunnar Beutner 365390b5f0 Build fix for CentOS 5
fixes #11179
2016-02-23 09:51:52 +01:00
Gunnar Beutner 9313373447 Rename the IOTHREADS macro
refs #11014
2016-02-23 09:51:47 +01:00
Adam James 998abbbae7 Fix parsing of YYYY-MM-DD in LegacyTimePeriod::ParseTimeSpec
fixes #11132

Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>
2016-02-23 09:45:34 +01:00
Michael Friedrich 2ec36d20ce DB IDO: PArtially revert change for *group_members
Otherwise the index breaks.

refs #11103
2016-02-23 09:45:10 +01:00
Michael Friedrich 2b643640a8 DB IDO: Fix problem with hostgroup_members cleanup
fixes #11103
2016-02-23 09:45:10 +01:00
Gunnar Beutner 80b8bdc640 Fix: Cluster WQ thread dies after fork()
fixes #11118
2016-02-23 09:44:44 +01:00
Michael Friedrich a30b112391 ApiListener: Bail out if object could not be created during config sync
refs #11006
2016-02-23 09:44:26 +01:00
Gunnar Beutner 2f948ca8ca Fix crash in ApiListener::ConfigUpdateObjectAPIHandler
fixes #11006
2016-02-23 09:44:26 +01:00
Jean Flach c1b4a8b757 Remove unused variables
fixes #11111
2016-02-23 09:44:05 +01:00
Jean Flach 9bc7f0ad75 Make schedule-downtime default fixed
fixes #10923
2016-02-23 09:43:53 +01:00
Michael Friedrich 7cbe1c46c9 Fix: Deleting an object via API does not disable it in DB IDO
fixes #11065
2016-02-23 09:43:41 +01:00
Gunnar Beutner 0dc6189f47 Build fix
fixes #11096
2016-02-23 09:43:18 +01:00
Michael Friedrich e3373ebfc5 Windows build fix
fixes #11096
2016-02-23 09:41:23 +01:00
Michael Friedrich c3dc3e6ec6 Fix: API queries on non-existant objects cause exception
fixes #11088
2016-02-23 09:38:39 +01:00
Gunnar Beutner 8af6ad74c3 Fix memory leak in Stream::Close
refs #10655
2016-02-23 09:38:24 +01:00
Gunnar Beutner 9a0107d360 Fix memory/thread leak in the HttpServerConnection class
fixes #10655
2016-02-23 09:38:23 +01:00
Gunnar Beutner b6a799d53e Ensure that HttpServerConnections are properly closed
fixes #10655
2016-02-23 09:38:05 +01:00
Gunnar Beutner 6cd931726d Fix crash in ConfigItem::RunWithActivationContext
fixes #11085
2016-02-23 09:36:17 +01:00
Gunnar Beutner b3b2eb856b Make sure the "syncing" attribute is set to false
refs #11083
2016-02-23 09:35:57 +01:00
Michael Friedrich a7142252fa Ensure that config sync updates are always sent on reconnect
fixes #11083
2016-02-23 09:35:47 +01:00
Michael Friedrich b58ddfb158 Implement String#trim
fixes #11037
2016-02-23 09:35:05 +01:00
Michael Friedrich 9141855454 Fix incorrect --version information
fixes #10784
2016-02-23 09:34:50 +01:00
Gunnar Beutner a2cbe1a0d5 Improve performance for TlsStream::OnEvent
refs #11014
2016-02-23 09:34:20 +01:00
Gunnar Beutner 3b4fc69fab Fix crash in IdoCheckTask::ScriptFunc
refs #11014
2016-02-23 09:33:47 +01:00
Gunnar Beutner 1fe27e55e9 Use multiple threads for socket IO
refs #11014
2016-02-23 09:33:45 +01:00
Gunnar Beutner 4fdc7042d6 Remove debug log message
refs #11014
2016-02-23 09:33:02 +01:00
Gunnar Beutner d36c3d4066 Avoid unnecessary pollfd updates
refs #11014
2016-02-23 09:33:01 +01:00
Gunnar Beutner 0fbbe620f9 Increase the buffer size in TlsStream::OnEvent to avoid unnecessary poll() calls
refs #11014
2016-02-23 09:32:38 +01:00
Gunnar Beutner 60181e0abb Fix deadlock in HttpClientConnection::DataAvailableHandler
refs #11014
2016-02-23 09:32:38 +01:00
Gunnar Beutner 4565a1fdb8 Fix incorrect memcpy() with overlapping buffers
refs #11014
2016-02-23 09:32:38 +01:00
Gunnar Beutner 4ae0681ffa Fix incorrect method call in JsonRpcConnection::MessageHandler
refs #11014
2016-02-23 09:32:38 +01:00
Gunnar Beutner f3ab63b60e Avoid unnecessary new/deletes
refs #11014
2016-02-23 09:32:37 +01:00
Gunnar Beutner 55720f3005 Fix deadlock in {HttpServerConnection,JsonRpcConnection}::DataAvailableHandler
refs #11014
2016-02-23 09:32:36 +01:00
Michael Friedrich a49f8f142e Remove debug output, part 2
refs #11014
2016-02-23 09:31:52 +01:00
Michael Friedrich 186b52082a Remove debug output
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner fe79c54df6 Avoid unnecessary reallocs in FIFO::Optimize
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner 211fc5ad53 Avoid unnecessary dictionary lookups in SocketEvents::ThreadProc
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner d474877add Remove debug output
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner 579d0049f3 Avoid unnecessary wake-ups in SocketEvents::ChangeEvents (part 2)
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner 77abfed873 Avoid updating the file descriptor list for poll() unless we really need to
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner 85c962a587 Decode cluster messages in the WorkQueue threads
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner d1b705613d Use multiple WorkQueues to process cluster messages
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner 864cdee8d9 Improve performance for ApiListener::RelayMessageOne
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner f9efc2ffe7 Improve the performance for ApiListener::SyncRelayMessage (part 2)
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner 0d5592a615 Improve performance for ApiListener::SyncRelayMessage
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner e7a1c83004 Ignore the .timestamp file when determining whether the zone config has changed (second attempt)
refs #11014
2016-02-23 09:31:51 +01:00
Gunnar Beutner 12b5e332e4 Ignore the .timestamp file when determining whether the zone config has changed
refs #11014
2016-02-23 09:31:51 +01:00
Gunnar Beutner b7a152ef48 Make sure the updated config sync works with old versions of Icinga 2
refs #11014
2016-02-23 09:31:51 +01:00
Gunnar Beutner c6be1c90aa Make sure the .timestamp file is synced for config updates
refs #11014
2016-02-23 09:31:51 +01:00
Michael Friedrich 8859242c5b Fix cluster config timestamp again
refs #11014
2016-02-23 09:31:51 +01:00
Michael Friedrich f7df3beb38 Fix cluster config sync timestamp
refs #11014
2016-02-23 09:31:51 +01:00
Gunnar Beutner fbc638e0b8 Make sure we only have one connection per satellite
refs #11014
2016-02-23 09:31:51 +01:00
Gunnar Beutner 5c23beb6a9 Use MkDirP instead of MkDir when syncing zone configs
fixes #10932
2016-02-23 09:28:37 +01:00
Michael Friedrich 91e1e9d93e Use a work queue for replaying the cluster log
refs #10713
2016-02-23 09:25:48 +01:00
Gunnar Beutner 93834623a0 Fix incorrect return value for ApiListener::GetInstance
refs #10711
2016-02-23 09:25:35 +01:00
Michael Friedrich eda28b219d Improve performance for Zone::CanAccessObject
fixes #10711
2016-02-23 09:25:27 +01:00
Michael Friedrich 9dc37c58ea 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-02-23 09:25:05 +01:00
Michael Friedrich 9ca7245c18 Properly set the next check time for active and passive checks
fixes #7287
refs #11019
2016-02-23 09:24:57 +01:00
Michael Friedrich 0516cb58e2 ExternalCommandListener: Fix crash when reading from socket
refs #10700
2016-02-23 09:23:39 +01:00
Michael Friedrich ec9caa4517 Fix: Modified attributes do not work for the IcingaApplication object w/ external commands
fixes #10974
2016-02-23 09:23:25 +01:00
Michael Friedrich f5fda9ebf0 Raise a config error for "Checkable" objects in global zones
fixes #10807
2016-02-23 09:20:39 +01:00
Gunnar Beutner 11dfcd76a3 Fix incorrect is_active queries
fixes #10891
2016-02-23 09:18:24 +01:00
Michael Friedrich 9de34e09b1 Fix that "repository add" writes invalid "type" attribute
fixes #10867
2016-02-23 09:16:47 +01:00
Michael Friedrich 9424404b9e Fix crash in DbEvents::RemoveCommentInternal()
Missing multiple queries as implemented with RemoveDowntimeInternal().

fixes #10883
2016-02-23 09:16:35 +01:00
Michael Friedrich 925161d9b4 Fix config validation for templates used as object reference name
fixes #10830
2016-02-23 09:16:22 +01:00
Michael Friedrich 99efc7be2c Fix failed reload via systemd
fixes #10226
2016-02-23 09:16:01 +01:00
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 30b13ba2d6 Don't log IDO statistics when we're not connected
refs #10860
2016-02-23 09:15:23 +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 e1ac078d4b Fix DB IDO events for next_check, etc. updates
refs #10817
2016-02-23 09:13:21 +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 2f8d416da0 Change log level for authoritative zone config includes
LogWarning will make users wonder about a problem each time
Icinga 2 starts.

refs #10819
2016-02-23 09:09:55 +01:00
Michael Friedrich 48fe703017 Fix cluster config sync for (non-)authoritative configs
Details: https://dev.icinga.org/issues/10819#note-39

refs #10819
2016-02-23 09:09:55 +01:00
Michael Friedrich f0a1872e3b Add more debug logging for api package config sync
refs #10819
2016-02-23 09:09:55 +01:00
Michael Friedrich 1f5a216a01 Fix that cluster config sync ignores zones.d directory from API config packages
fixes #10819
2016-02-23 09:09:55 +01:00
Michael Friedrich db0e8c676e Fix that relative paths do not work with include_zones
fixes #10828
2016-02-23 09:09:20 +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