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
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
Michael Friedrich
e623394af1
Use NodeName instead of GetFQDN() in embedded checks
...
fixes #10818
2015-12-10 15:28:48 +01:00
Gunnar Beutner
8b74fc91a9
Remove the local zone name question in node wizard
...
fixes #10724
2015-12-08 15:48:05 +01:00
Jean Flach
2eac563c98
Update default port behaviour in node wizard
...
fixes #10728
2015-12-08 15:47:00 +01:00
Michael Friedrich
893f0b9853
Fix missing num_hosts_pending in /v1/status/CIB
...
fixes #10736
2015-12-08 15:45:22 +01:00
Gunnar Beutner
f3ea00b189
Turn '=>' lambda expressions into side-effect-free statements
...
fixes #10760
2015-12-08 15:31:09 +01:00
Michael Friedrich
833e28025a
Fix crash on startup with incorrect directory permissions
...
fixes #10739
2015-12-08 15:28:51 +01:00
Michael Friedrich
383a6a1334
Fix missing path in mkdir() exception
...
fixes #10748
2015-12-04 10:17:40 +01:00
Michael Kraus
1ce8e64ab2
Fix problem with livestatus filter "type"
...
There was a regression in changeset 3d4e48aa12
for issue 10449 that
made the "class" filter work, but broke the "type" filter. Reverting some changes seems to do the
trick.
refs #10449
Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-12-02 11:18:05 +01:00
Michael Friedrich
bcb5eefc8c
Livestatus: Fix "class" filter for log table
...
fixes #10449
2015-11-26 19:18:05 +01:00
Jean Flach
4e05a4ca7f
Fix return value in PkiUtility
...
refs #10632
2015-11-26 11:19:33 +01:00
Gunnar Beutner
141f255d5b
Build fix for Windows
...
refs #10693
2015-11-26 11:19:33 +01:00
Gunnar Beutner
b14a48d519
Implement Platform* global variables
...
refs #10693
2015-11-26 11:19:32 +01:00
Jean Flach
c55f97a0e5
Update node wizard
...
The wizard now displays basic information on the to-be-imported master
certificate and asks the user for confirmation.
fixes #10632
2015-11-26 10:29:43 +01:00
Gunnar Beutner
05af1cba0d
Use the NodeName constant in 'api setup'
...
fixes #10641
2015-11-26 08:12:13 +01:00
Gunnar Beutner
bf97d7cc57
Hide the --master_zone option in --help because it's not currently implemented
...
fixes #10720
2015-11-25 19:00:25 +01:00
Gunnar Beutner
93c5fc5b82
Use the ZoneName and NodeName constants for 'node setup' and 'node wizard'
...
refs #10716
2015-11-25 17:44:45 +01:00
Jean Flach
65018fb75b
Fix master zone name
...
fixes #10716
2015-11-25 17:44:31 +01:00
Gunnar Beutner
21cb5690f5
Fix crash in ConfigItem::ActivateItems
...
refs #10643
2015-11-25 13:23:04 +01:00
Michael Friedrich
d3aae81323
Fix crash in ConfigItem::ActivateItems
...
refs #10643
2015-11-25 13:22:55 +01:00
Gunnar Beutner
33fbd6c877
Fix race condition in the ConfigItem class
...
fixes #10643
2015-11-25 13:22:32 +01:00
Gunnar Beutner
d96ee6b417
Build fix for systems where strsignal() returns a const char *
2015-11-24 14:45:51 +01:00
Gunnar Beutner
f2be32eda1
Build fix for SLES 11 (with -std=c++11)
...
fixes #10615
2015-11-21 04:46:57 +01:00
Gunnar Beutner
24b7089964
Fix: CLI command 'repository add' doesn't work
...
fixes #10690
2015-11-20 15:53:56 +01:00
Michael Friedrich
aaa9715a67
Fix pki new-ca not checking for existing ca files
...
fixes #10677
2015-11-19 17:11:21 +01:00
Gunnar Beutner
b75aa74cbd
Fix crash in Process::IOThreadProc when building Icinga 2 with GCC 4.7.2
...
fixes #10648
2015-11-17 22:08:05 +01:00
Gunnar Beutner
7d8c8aac5a
Use notify_one in WorkQueue::Enqueue
...
fixes #10639
2015-11-16 08:13:55 +01:00
Gunnar Beutner
eb67f3779f
Fix incorrect error messages on Windows
...
fixes #10637
2015-11-15 21:18:27 +01:00
Gunnar Beutner
79b15efd09
Allow null values for constructor calls
...
fixes #10628
2015-11-14 05:36:48 +01:00
Michael Friedrich
6518f78af0
Fix attribute validation for PUT queries
...
fixes #10601
2015-11-12 10:13:46 +01:00
Michael Friedrich
545607be9f
Fix that custom attribute with function value cannot be cloned
...
fixes #10583
2015-11-11 14:18:25 +01:00
Michael Friedrich
284a10150b
Fix attributes names for joins; update documentation
...
refs #10551
fixes #10576
2015-11-11 13:50:47 +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
b2364884d8
Check whether config file exists before trying to create object
...
fixes #10602
2015-11-11 10:25:18 +01:00
Gunnar Beutner
e3c75faabc
Implement support for recursive object locks
...
fixes #10596
2015-11-11 10:21:30 +01:00
Gunnar Beutner
356c4cc170
Don't allow users to set internal attributes via PUT
...
fixes #10601
2015-11-11 08:41:49 +01:00
Gunnar Beutner
2d2e7ecdb2
Improve location information for exceptions
...
fixes #10568
2015-11-10 17:05:40 +01:00
Michael Friedrich
f5da37b7df
Remove obsolete checks from API actions
...
refs #10561
2015-11-10 16:13:14 +01:00
Gunnar Beutner
1667fbaf31
Build fix for Windows
2015-11-10 13:09:34 +01:00
Gunnar Beutner
0a6505ce2d
Use poll() for the command pipe fd
...
refs #10410
2015-11-10 11:41:21 +01:00
Gunnar Beutner
2cc33b7fb3
Don't validate arguments/parameters that aren't strings
...
refs #10539
2015-11-10 07:59:10 +01:00
Michael Friedrich
36cea68c1a
Add the HTTP request body to debug log
2015-11-09 22:48:56 +01:00