Jean-Marcel Flach
9ed21563ff
Use RequestShutdown with exitcode instead of Application::Exit
...
fixes #8436
2015-02-27 14:43:30 +01:00
Gunnar Beutner
2884e8318d
Fix null pointer dereference in ApiClient::TimeoutTimerHandler
...
fixes #8553
2015-02-27 14:12:50 +01:00
Gunnar Beutner
bb2cdff435
Fix a deadlock in ApiClient::Disconnect
...
fixes #8549
2015-02-26 17:23:06 +01:00
Gunnar Beutner
4e8c5706e1
Don't send heartbeats during log replay
...
fixes #8461
refs #8485
2015-02-26 14:59:39 +01:00
Gunnar Beutner
c439ee6d9f
Fix a crash in ApiClient::TimeoutTimerHandler
...
refs #8485
2015-02-26 13:31:38 +01:00
Gunnar Beutner
1302f7c841
Improve log message for cluster connection timeouts
...
refs #8485
2015-02-26 13:09:13 +01:00
Gunnar Beutner
a3ccd2a1fb
Close client connections if we haven't received any messages in some time
...
refs #8485
2015-02-26 12:41:47 +01:00
Gunnar Beutner
2b44fcb571
Make sure that the 'connecting' flag is reset properly
...
refs #8485
2015-02-26 11:26:08 +01:00
Gunnar Beutner
5fe2536629
Add missing locks in ApiListener::UpdateConfigDir
2015-02-24 16:03:32 +01:00
Michael Friedrich
ba77d7b35f
ApiListener: Fix misleading connection log messages
...
fixes #8493
2015-02-20 15:11:44 +01:00
Gunnar Beutner
33e747ae2e
Don't require tickets for clients which already have a trusted certificate
...
fixes #8465
2015-02-18 08:13:44 +01:00
Gunnar Beutner
667b62cc3c
Improve log messages for ApiListener::ApiTimerHandler
2015-02-17 15:46:29 +01:00
Gunnar Beutner
d5c33d84f7
Fix a deadlock in ApiClient::~ApiClient
...
fixes #8462
2015-02-17 14:31:10 +01:00
Gunnar Beutner
1c7a0d03a1
Fix a case where NetString::ReadStringFromStream might incorrectly return StatusEof
...
refs #6109
2015-02-14 18:48:33 +01:00
Gunnar Beutner
f097e48889
Don't use separate threads for each ApiClient object
...
fixes #6109
2015-02-14 16:34:36 +01:00
Gunnar Beutner
e0bbfb175c
Move most of the socket I/O to a separate thread
...
fixes #8300
fixes #8243
2015-02-14 09:42:11 +01:00
Michael Friedrich
2cab6fbb9d
Make the argments for the stats functions const-ref
...
fixes #8433
2015-02-13 11:29:15 +01:00
Gunnar Beutner
b0f7a29212
Add missing spaces in some error messages
...
refs #7995
2015-02-10 08:57:54 +01:00
Gunnar Beutner
f07fb97264
Fix timestamp format for the .timestamp file
...
fixes #8313
2015-02-09 15:22:55 +01:00
Gunnar Beutner
97fc5bb10b
Implement additional attributes for the Host class
...
refs #7564
2015-02-09 08:50:17 +01:00
Gunnar Beutner
67e50a3d47
Config sync: Open config files in binary mode
...
fixes #8390
2015-02-09 07:44:45 +01:00
Michael Friedrich
21f86b9061
Fix authoritative zones in config sync
...
fixes #8388
refs #8256
2015-02-07 23:41:43 +01:00
Michael Friedrich
ea2ac81003
Remove name and return value for stats functions
...
fixes #6171
2015-02-07 22:36:17 +01:00
Michael Friedrich
289ca2ec24
Improve error messages on Endpoint not belonging to a zone or multiple zones
...
fixes #8372
2015-02-07 20:07:34 +01:00
Gunnar Beutner
88e1aadbf2
Use a separate thread for TLS connection attempts
...
fixes #8295
2015-01-28 08:35:36 +01:00
Michael Friedrich
78bfd0204c
Update copyright year
2015-01-22 12:00:23 +01:00
Gunnar Beutner
310278344c
Make sure we don't include zones.d directories for zones which were removed
...
fixes #8256
2015-01-20 13:18:40 +01:00
Gunnar Beutner
55b7f00382
Remove unnecessary includes
2014-12-15 10:16:06 +01:00
Gunnar Beutner
c70623ec7c
Add log message for heartbeat timeouts
...
refs #7745
2014-12-10 09:57:08 +01:00
Gunnar Beutner
4a81dbb6fc
Build fix for Windows
2014-12-09 15:07:49 +01:00
Gunnar Beutner
4d657163c3
Implement heartbeat messages for the cluster
...
fixes #7745
2014-12-09 13:17:27 +01:00
Michael Friedrich
a07600a469
Fix missing lock in ConfigUpdateHandler()
2014-12-01 13:19:55 +01:00
Gunnar Beutner
8611682cdb
Fix initialization for the ApiListener class
...
fixes #7780
2014-11-21 23:23:31 +01:00
Gunnar Beutner
7fc5af6aff
Fix initialization bug for the Endpoint class
...
refs #7780
2014-11-21 21:01:44 +01:00
Gunnar Beutner
7321e45abc
Implement support for executing remote commands
...
fixes #7559
2014-11-13 14:54:55 +01:00
Gunnar Beutner
11710ef683
Fix static initializers
...
refs #7634
2014-11-11 13:24:44 +01:00
Gunnar Beutner
478f03b49a
Replace boost::shared_ptr with boost::intrusive_ptr
...
refs #7622
2014-11-09 16:54:41 +01:00
Michael Friedrich
a362b5c14c
Fix Zone::IsGlobal()
2014-11-08 22:57:09 +01:00
Gunnar Beutner
266b1754c7
Speed up type lookups
...
refs #7561
2014-11-07 12:39:32 +01:00
Gunnar Beutner
170c5a59e4
Implement typeof() function
2014-11-03 00:45:14 +01:00
Michael Friedrich
f69527599f
Cli: Fix serial.txt permissions for 'node setup/wizard'
...
fixes #7546
2014-11-02 19:38:35 +01:00
Gunnar Beutner
7559273359
Replace cJSON with YAJL
...
fixes #7452
2014-10-26 20:00:35 +01:00
Gunnar Beutner
5cb08f3ecc
Fix incorrect attribute name
...
fixes #7446
2014-10-24 17:48:02 +02:00
Gunnar Beutner
17003d0157
Remove unnecessary initializers
...
refs #7247
2014-10-23 19:02:16 +02:00
Gunnar Beutner
9368ff0e03
Update some more log messages
2014-10-20 10:09:57 +02:00
Gunnar Beutner
2d5e9514a5
Refactor logging code
2014-10-19 17:52:17 +02:00
Gunnar Beutner
b18f57a745
Remove logger_fwd.hpp
2014-10-19 14:50:39 +02:00
Gunnar Beutner
92896311f3
Implement support for C/C++ comments in the TI compiler
...
fixes #5018
2014-10-17 19:44:31 +02:00
Gunnar Beutner
97cf93089b
Build fix for FreeBSD
2014-10-16 13:36:25 +02:00
Gunnar Beutner
f433679b13
Implement the "pki request" and "pki ticket" commands
...
refs #7244
2014-10-16 12:27:34 +02:00
Gunnar Beutner
311cce5d41
Allow TLS connections with unverified certificates
...
refs #7244
2014-10-16 09:01:18 +02:00
Gunnar Beutner
879684efcd
Fix problems with PNP4Nagios
...
fixes #7268
2014-09-17 15:38:39 +02:00
Gunnar Beutner
ac32d4b382
Improve thread spawning behavior
...
fixes #7186
2014-09-11 11:45:21 +02:00
Gunnar Beutner
092983d5ad
Properly deal with closed TLS streams
...
fixes #6892
2014-09-09 15:28:55 +02:00
Gunnar Beutner
9a06b09366
ApiClient: Don't try to write to closed streams
...
refs #6892
2014-09-09 15:12:39 +02:00
Gunnar Beutner
5bb3971f0b
Increase queue size for API clients
...
fixes #6841
fixes #7096
2014-09-05 11:54:47 +02:00
Gunnar Beutner
6f2ea6bc08
Fix build problems with Oracle Solaris Studio
...
refs #6896
2014-09-02 13:09:17 +02:00
Gunnar Beutner
eb091a87b0
Implement support for unity builds
...
fixes #7034
fixes #7035
2014-08-30 20:02:12 +02:00
Gunnar Beutner
fca79dd66c
Check object access when replaying log files
...
fixes #6205
2014-08-26 11:01:29 +02:00
Gunnar Beutner
f7f8bd9b00
Use const-ref specifier when catching exceptions
...
refs #6070
2014-08-25 08:36:30 +02:00
Gunnar Beutner
2c7f440a73
Implement support for ApiListener::bind_host
...
fixes #6998
2014-08-25 08:27:19 +02:00
Gunnar Beutner
3972aa20c4
Change log level for one of the log messages
...
refs #6066
2014-08-22 16:00:57 +02:00
Gunnar Beutner
29db3f0972
Add more log messages for API connections
...
refs #6066
2014-08-22 15:39:34 +02:00
Gunnar Beutner
107a152a8f
Improve TLS and cluster error messages
...
refs #6066
2014-08-20 14:07:23 +02:00
Michael Friedrich
f6c24f8964
DB IDO: Delay connection in HA RunOnce mode
...
refs #6827
refs #6203
2014-08-15 17:21:12 +02:00
Michael Friedrich
de229f9fec
Exit early on ApiListener SSL errors
...
refs #6682
2014-08-05 12:14:24 +02:00
Gunnar Beutner
883170a806
Avoid duplicate API connections
...
refs #6724
2014-08-05 09:10:59 +02:00
Michael Friedrich
51329f0b3c
Bail early if ApiListener cannot be started
...
refs #6682
2014-08-04 17:23:41 +02:00
Gunnar Beutner
9c9982616b
Properly close TLS connections
...
refs #6724
2014-08-04 13:35:12 +02:00
Gunnar Beutner
3c8e84e59e
Fix an invalid pointer access in ApiClient::DisconnectSync
...
refs #6724
2014-08-04 12:48:46 +02:00
Gunnar Beutner
6455c51777
Fix a potential deadlock in ApiClient::Disconnect
...
refs #6724
2014-08-04 09:50:47 +02:00
Gunnar Beutner
f6d6a82762
Fix crash in ApiClient::Disconnect
...
fixes #6672
2014-07-09 09:14:17 +02:00
Gunnar Beutner
65e69fcd37
Another attempt at fixing the API deadlock
...
fixes #6617
2014-07-01 09:41:02 +02:00
Gunnar Beutner
8b1579381e
Revert "Fix another deadlock in ApiClient::SendMessage"
...
This reverts commit a0c0930325
.
2014-07-01 08:57:57 +02:00
Gunnar Beutner
a0c0930325
Fix another deadlock in ApiClient::SendMessage
...
refs #6368
2014-06-30 14:01:07 +02:00
Gunnar Beutner
adccc41a8d
Fix: Icinga doesn't send SetLogPosition messages when one of the endpoints fails to connect
...
fixes #6537
2014-06-23 10:00:02 +02:00
Michael Friedrich
dea57e9dcf
Replace existing mkdir() calls with Utility::MkDir()
...
refs #6328
2014-06-13 09:23:05 +02:00
Michael Friedrich
1eb77b0cd7
Replace recursive implementation with a forward loop in Utility::MkDirP()
...
That way we always move into the tree, but not start in the deepest
level and may limit the tree level too in the future, if required.
Solves the Win32 implementation by moving the general mkdir() call into
Utility::MkDir().
refs #6328
2014-06-13 09:10:35 +02:00
Michael Friedrich
2acf6a063e
Fix syncing zones.d from etc/ to var/lib in a recursive manner
...
Missing mkdir -p basically. Introducing Utility::MkDirP() which still
requires Win32 implementation.
refs #6328
2014-06-12 23:28:46 +02:00
Michael Friedrich
a57ebbf953
Fix thinko with global zone sync
...
refs #6254
2014-06-12 14:31:07 +02:00
Michael Friedrich
a3b2b1d780
Add global zone identifier for global object/template configuration.
...
Refs #6254
2014-06-11 16:49:30 +02:00
Michael Friedrich
78e4b28006
Fix segfault with zones without endpoints on config compile.
...
Fixes #6425
2014-06-06 13:30:06 +02:00
Michael Friedrich
0c021d94cb
Error Messages: Catch and log all Socket class exceptions.
...
Refs #6070
2014-06-05 16:17:53 +02:00
Michael Friedrich
47f19a2ce9
Error messages: Catch all SSL/TLS exceptions in ApiListener.
...
Refs #6070
2014-06-05 15:03:56 +02:00
Michael Friedrich
bd916723f4
Error messages: Fix ApiListener.
...
Refs #6070
2014-06-05 14:40:52 +02:00
Gunnar Beutner
24035ab390
Use AF_UNSPEC for Bind() calls.
...
Fixes #6375
2014-06-01 08:51:06 +02:00
Michael Friedrich
340693fb34
Change log message identifier for libremote.
...
Refs #6346
2014-05-28 14:42:00 +02:00
Gunnar Beutner
ca51fe8c56
Remove the keep_alive attribute.
...
Fixes #6304
2014-05-26 13:49:14 +02:00
Gunnar Beutner
632026cd9f
Rename C++ header files.
...
Fixes #6291
2014-05-25 16:27:14 +02:00
Gunnar Beutner
56514f6955
Fix config sync problem.
...
Fixes #6212
Fixes #6242
2014-05-23 18:35:43 +02:00
Michael Friedrich
15f054b7fe
Move ApiListener timer logs to 'notice'.
...
Refs #6070
2014-05-23 14:16:35 +02:00
Michael Friedrich
1df7518b35
Move more log messages to 'notice' severity.
...
Refs #6070
2014-05-22 23:47:03 +02:00
Michael Friedrich
8e05f6ce4b
Fix null ptr exception in Zone::GetLocalZone()
...
Fixes #6273
2014-05-22 23:01:15 +02:00
Michael Friedrich
c2dadc5f88
Fix debug output for Api* connection errors.
...
Refs #6070
2014-05-22 21:20:18 +02:00
Michael Friedrich
4296ec3987
Change the most chatting log messages to 'notice' severity.
...
Refs #6070
2014-05-22 16:07:57 +02:00
Michael Friedrich
0713918c5e
Extract exception error info message.
...
Refs #6070
2014-05-22 16:07:57 +02:00
Michael Friedrich
aaa6154fd7
Make critical connection errors readable in ApiListener.
...
Refs #6070
2014-05-22 16:07:57 +02:00
Michael Friedrich
7462c8320a
Add 'notice' severity to *Logger.
...
Refs #6070
2014-05-22 16:07:57 +02:00
Gunnar Beutner
fceeeba05e
Fix compiler warnings.
...
Fixes #5823
2014-05-22 10:28:21 +02:00
Michael Friedrich
52f4d7a5f7
Fix the current zone master log message.
...
Fixes #6241
2014-05-20 10:41:09 +02:00