Commit Graph

309 Commits

Author SHA1 Message Date
Gunnar Beutner 5f0bec3936 Implemented compat module (WIP). 2012-06-27 18:43:34 +02:00
Gunnar Beutner 6f9342a261 Re-delegate services after config changes. 2012-06-27 10:59:08 +02:00
Gunnar Beutner 593e329248 Added serialization support for check results.
Bugfixes.
2012-06-25 14:13:24 +02:00
Gunnar Beutner 3d6df6611c Bugfixes. 2012-06-24 20:11:10 +02:00
Gunnar Beutner 34d26d424f Made sockets multi-threaded. 2012-06-24 05:27:01 +02:00
Gunnar Beutner d1f4d9b829 Performance improvements. 2012-06-22 23:19:10 +02:00
Gunnar Beutner cae84e9827 Bugfixes. 2012-06-22 13:40:09 +02:00
Gunnar Beutner e294cf6686 Bugfixes. 2012-06-22 12:05:25 +02:00
Gunnar Beutner 7f299fb2a7 Performance fixes for TLS sockets. 2012-06-22 11:47:06 +02:00
Gunnar Beutner d2332c8fd4 Avoid unnecessary wake-ups for timers. 2012-06-22 11:19:58 +02:00
Gunnar Beutner 7ed19cd533 Bugfixes. 2012-06-21 17:39:16 +02:00
Gunnar Beutner d4fb11d427 Even more bugfixes. 2012-06-21 16:16:53 +02:00
Gunnar Beutner 77ce61d548 Bugfixes. 2012-06-21 15:01:54 +02:00
Gunnar Beutner ddeda8c512 Delegation bugfixes. 2012-06-21 12:52:13 +02:00
Gunnar Beutner 33c37f4a27 Bugfixes for the TLS client. 2012-06-21 12:22:16 +02:00
Gunnar Beutner db4fde9554 Bugfixes for the delegation feature. 2012-06-21 00:10:10 +02:00
Gunnar Beutner 49c7cd27d2 Check whether there's an application instance before calling Shutdown(). 2012-06-20 15:23:10 +02:00
Gunnar Beutner 468a0ad5b2 Ignore debug log for now. 2012-06-20 10:46:18 +02:00
Gunnar Beutner 877b9516f0 More performance improvements. 2012-06-19 15:52:48 +02:00
Gunnar Beutner 436ad8a26a Performance improvements. 2012-06-19 09:38:20 +02:00
Gunnar Beutner 1db56a5995 Bugfixes for the nagios checker/thread pool. 2012-06-18 17:23:48 +02:00
Gunnar Beutner 3ebe553401 Don't wait for tasks when destroying a threadpool. 2012-06-18 06:44:26 +02:00
Gunnar Beutner 1d8331ecd8 Use a FIFO queue for the tasks in the thread pool. 2012-06-18 06:31:40 +02:00
Gunnar Beutner bd1e8b2395 Evenly distribute checks in the check interval. 2012-06-18 02:19:15 +02:00
Gunnar Beutner 30af9494d8 Bugfixes. 2012-06-18 01:58:13 +02:00
Gunnar Beutner f41032e69b Merge branch 'master' of github.com:gunnarbeutner/strawberry 2012-06-18 01:44:10 +02:00
Gunnar Beutner 74bae58f21 Bugfixes. 2012-06-18 01:42:42 +02:00
Gunnar Beutner 86ffd15eb9 Performance fixes. 2012-06-18 01:29:02 +02:00
Gunnar Beutner 4c658eb889 Multi-threaded nagios checks. 2012-06-17 21:00:24 +02:00
Gunnar Beutner 7f4c3f84be Code cleanups. 2012-06-17 16:37:36 +02:00
Gunnar Beutner 728f72dcce Use adapters in the checker/delegation components. 2012-06-16 20:47:43 +02:00
Gunnar Beutner 7d630249cc Code cleanup. 2012-06-16 16:54:55 +02:00
Gunnar Beutner dbe48e501c Use specific types (rather than Object::Ptr) for event handlers. 2012-06-16 13:09:17 +02:00
Gunnar Beutner 7abf1bad51 Make Object::ClearHeldObjects() public. 2012-06-16 04:04:36 +02:00
Gunnar Beutner 7753e229cc Remove EventArgs struct. 2012-06-16 03:42:54 +02:00
Gunnar Beutner 10138c7ff8 Cleaned up Application::GetExeDirectory 2012-06-15 22:26:25 +02:00
Gunnar Beutner 9ab3f6aaba Compilation fixes for *NIX. 2012-06-15 19:56:28 +02:00
Gunnar Beutner 0bd5323629 Prefer boost::* over C++0x features. 2012-06-15 19:32:41 +02:00
Gunnar Beutner 8e61490530 Checker/delegation fixes. 2012-06-14 16:09:04 +02:00
Gunnar Beutner 1e1bb43dea Replaced custom event code with Boost.Signals. 2012-06-14 15:16:41 +02:00
Gunnar Beutner 739d0c1c29 Implemented asynchronous (internal) API calls. 2012-06-14 11:18:20 +02:00
Gunnar Beutner 31407fd07f Implemented rudimentary service checks. 2012-06-13 13:43:12 +02:00
Gunnar Beutner 7750242384 Bugfixes. 2012-06-12 11:56:12 +02:00
Gunnar Beutner c44d8d5912 Even more bugfixes. 2012-06-12 11:34:48 +02:00
Gunnar Beutner 900e65d009 More bugfixes. 2012-06-12 11:24:02 +02:00
Gunnar Beutner 0270d9cf52 Bugfixes. 2012-06-12 10:49:30 +02:00
Gunnar Beutner d45bcf99b1 Integrate libdyn with the configfile component. 2012-06-12 10:13:57 +02:00
Gunnar Beutner 1726e1ba0d Performance improvements. 2012-06-11 08:21:47 +02:00
Gunnar Beutner 3e2b5d5269 Fixed memory leaks in the parser.
Improved Dictionary performance.
2012-06-06 14:38:28 +02:00
Gunnar Beutner 9b8fd9755b Implemented additional parts of the config compiler. 2012-06-05 15:05:15 +02:00
Gunnar Beutner 8144ca398b Added dyn test class. 2012-05-30 12:43:33 +02:00
Gunnar Beutner 132a62f4eb Fixed Solaris compatibility. 2012-05-29 16:56:25 +02:00
Gunnar Beutner 3027ea1758 Added SQLite. 2012-05-29 13:52:24 +02:00
Gunnar Beutner fa158c5368 Added makefile support for unit tests. 2012-05-28 12:01:08 +02:00
Gunnar Beutner d130d6017f Improved MingW compatibility. 2012-05-28 10:41:21 +02:00
Gunnar Beutner 6f6cc52e20 Use spec file as the authorative source of the package info/version number. 2012-05-27 19:50:48 +02:00
Gunnar Beutner 2864460419 Use LIBRARY_VERSION for libtool. 2012-05-27 13:35:55 +02:00
Gunnar Beutner 3fd4177ba0 Merge branch 'master' of github.com:gunnarbeutner/strawberry 2012-05-27 00:28:15 +02:00
Gunnar Beutner dbe59841d6 Fixed FIFO::ResizeBuffer 2012-05-27 00:27:55 +02:00
Gunnar Beutner 979cbdd70c Updated RPM spec file. 2012-05-26 23:12:46 +02:00
Gunnar Beutner 2ffaff19a8 Fixed compilation on *NIX. 2012-05-26 21:38:04 +02:00
Gunnar Beutner b9af44cd98 Fixed compilation on *NIX. 2012-05-26 21:36:24 +02:00
Gunnar Beutner 33d67401b9 Use STL exceptions as far as possible. 2012-05-26 21:30:04 +02:00
Gunnar Beutner c38e9c8468 Removed Memory class. 2012-05-26 20:19:32 +02:00
Gunnar Beutner 5dfb1cc4b4 Cleaned up socket error handling. 2012-05-26 20:01:00 +02:00
Gunnar Beutner 2e3e1af32b Use ax_cxx_compile_stdcxx_0x.m4 to detect C++0x support. 2012-05-26 14:40:15 +02:00
Gunnar Beutner 94eba566af Proper integration for Boost. 2012-05-25 22:04:03 +02:00
Gunnar Beutner 0527ff012a Added support for POSIX.1-2001 realpath() (Hello Solaris 10). 2012-05-25 20:30:11 +02:00
Gunnar Beutner e14bf9faec Fixed compilation on Solaris 10. 2012-05-25 16:56:47 +02:00
Gunnar Beutner 70b2595b26 Added TR1 compat support using Boost. 2012-05-25 14:40:10 +02:00
Gunnar Beutner 04aaf2f354 Added preliminary version of the dynamic object framework. 2012-05-25 11:10:11 +02:00
Gunnar Beutner 3f708fce21 Made inheritance for Exception class virtual.
Fixed EndpointManager.
2012-05-24 19:36:37 +02:00
Gunnar Beutner 59dcfa801c Consistent ordering for method declarations. 2012-05-21 23:42:54 +02:00
Gunnar Beutner 918cbad764 Fixed base class for Exception. 2012-05-21 16:59:28 +02:00
Gunnar Beutner a420d1f801 Bugfix for the Exception class. 2012-05-21 13:03:04 +02:00
Gunnar Beutner 1f56d2eb13 Win32: added handler for Ctrl-C
Removed unused code from the Component class
Added accessor function for Application::Instance
2012-05-21 12:54:28 +02:00
Gunnar Beutner 9beef6446f Even more documentation updastes. 2012-05-19 11:04:52 +02:00
Gunnar Beutner 1584e03fa3 Documentation update. 2012-05-19 10:48:00 +02:00
Gunnar Beutner ce60fbd6ba Documentation updates.
Renamed classes to match style guide.
2012-05-19 10:27:41 +02:00
Gunnar Beutner 8b0c102cac More documentation updates. 2012-05-18 23:25:06 +02:00
Gunnar Beutner fcb0394329 Documentation updates. 2012-05-18 23:24:00 +02:00
Gunnar Beutner d02dd4eb0a Documentation update.
Code cleanup.
2012-05-18 22:56:34 +02:00
Gunnar Beutner 257988539a Updated documentation. 2012-05-18 22:21:28 +02:00
Gunnar Beutner 11a70ab8e8 Moved unused classes (again). 2012-05-18 22:16:13 +02:00
Gunnar Beutner 62c8b700db Removed unused classes from the build scripts. 2012-05-18 22:14:32 +02:00
Gunnar Beutner 57dcab4174 Build fixes for gcc. 2012-05-18 10:27:41 +02:00
Gunnar Beutner 7f381149dc Implemented Lock class. 2012-05-18 10:15:15 +02:00
Gunnar Beutner df4c8b9bae Cleaned up code. 2012-05-17 19:14:03 +02:00
Gunnar Beutner 877c7a09b2 Cleaned up Dictionary/Message classes. 2012-05-16 11:30:54 +02:00
Gunnar Beutner 77bec95ec5 Cleaned up jsonrpc library.
Updated documentation.
2012-05-15 16:29:46 +02:00
Gunnar Beutner 925e947a98 Updated documentation.
Cleaned up Dictionary class.
2012-05-15 10:58:14 +02:00
Gunnar Beutner d9b7debdcc Cleaned up application initialization.
Made code documentation more doxygen-friendly.
Added doxygen config file.
2012-05-14 19:14:23 +02:00
Gunnar Beutner bec30888f7 Moved C++11 compat code into the icinga namespace. 2012-05-13 20:47:14 +02:00
Gunnar Beutner 38486640fd Added error checking for WSAStartup() 2012-05-13 20:39:51 +02:00
Gunnar Beutner cdcac0d903 De-coupled JSON parsing from the Netstring class. 2012-05-13 10:44:03 +02:00
Gunnar Beutner 7b03f52e99 Added support for --disable-shared. 2012-05-12 16:12:26 +02:00
Gunnar Beutner f6dff42434 Fixed FSF address. 2012-05-11 13:33:57 +02:00
Gunnar Beutner ab6b46786b Build fix for Solaris. 2012-05-11 12:44:04 +02:00
Gunnar Beutner 1ec7c223d4 Fixed more compilation warnings. 2012-05-10 13:49:24 +02:00
Gunnar Beutner 0c8932d2d9 Fixed more compilation warnings. 2012-05-10 13:17:15 +02:00
Gunnar Beutner c96fc41efd Fixed some compiler warnings. 2012-05-10 13:12:25 +02:00
Gunnar Beutner 3214c29363 Added copyright headers.
Updated Debian build files.
2012-05-10 12:06:41 +02:00
Gunnar Beutner 6f216e07ae Fixed return value for Utility::Match. 2012-05-09 12:24:47 +02:00
Gunnar Beutner 9d86d0d126 Windows build fix. 2012-05-09 12:19:58 +02:00
Gunnar Beutner 2c93eea4e7 Fixed library dependencies (libtool). 2012-05-09 12:10:07 +02:00
Gunnar Beutner 04473558df Build fix for *NIX 2012-05-09 10:19:36 +02:00
Gunnar Beutner 18bffce0ed Implemented message-based authorisation checks. 2012-05-09 10:16:31 +02:00
Gunnar Beutner 36eb5e1cf3 More documentation updates. 2012-05-08 15:36:28 +02:00
Gunnar Beutner bef85cac1a Updated documentation for some of the classes. 2012-05-08 15:14:20 +02:00
Gunnar Beutner 8a5e1423ca Bugfix: Deal with error code for bind() 2012-05-08 09:44:58 +02:00
Gunnar Beutner fbfff23923 Bugfix for TCPSocket::Bind() 2012-05-07 13:58:22 +02:00
Gunnar Beutner 28bdbe1ffe Cleaned up JSON-RPC client code. 2012-05-07 13:48:17 +02:00
Gunnar Beutner 3f1fb0e36d Start SSL handshake once the connection has been established. 2012-05-07 11:41:23 +02:00
Gunnar Beutner c8a5343fe5 Refactored subscription code in preparation for a centralized broker/discovery component. 2012-05-07 11:13:47 +02:00
Gunnar Beutner 7e4788720d Bugfix: Exception for invalid messages wasn't properly dealt with. 2012-04-30 08:22:30 +02:00
Gunnar Beutner 7e2b8d90a5 Fixed excessive CPU usage during SSL negotiation. 2012-04-27 14:47:29 +02:00
Gunnar Beutner 415f1d39aa Close old connection when duplicate endpoints are found. 2012-04-27 13:44:53 +02:00
Gunnar Beutner d55965c070 Made SSL cert paths configurable. 2012-04-27 13:12:06 +02:00
Gunnar Beutner 5c603ee98b Bugfix for deleting delegates. 2012-04-27 13:11:07 +02:00
Gunnar Beutner 4d873b50fb Disallow connections to endpoints we're already connected to. 2012-04-27 11:50:01 +02:00
Gunnar Beutner db25f7f353 Moved Get*Address() functions to Socket class. 2012-04-27 11:44:05 +02:00
Gunnar Beutner c1a8576c5c Implemented IPv6 support. 2012-04-27 09:54:07 +02:00
Gunnar Beutner 3825e2902f Cleaned up reconnection code. 2012-04-26 21:33:23 +02:00
Gunnar Beutner c01477ff62 More gcc build fixes. 2012-04-26 16:55:26 +02:00
Gunnar Beutner e34045b307 Build fix for gcc. 2012-04-26 16:51:24 +02:00
Gunnar Beutner ae58a2dcda Cleaned up logging.
Implemented TCPSocket::Get*Address()
2012-04-26 16:50:47 +02:00
Gunnar Beutner 24e69fcfb6 Merge branch 'master' of ssh://github.com/gunnarbeutner/i2test 2012-04-26 12:58:43 +02:00
Gunnar Beutner e35b14f9a4 Make Application::Log static and add more logging. 2012-04-26 12:58:20 +02:00
Gunnar Beutner 68a0c569ce Fixed compilation warning. 2012-04-26 12:55:48 +02:00
Gunnar Beutner 00709b21c8 Deal with appletastic deprecation warnings for OpenSSL. 2012-04-24 19:58:32 +02:00
Gunnar Beutner 0cc15ffc0c Ignore SIGPIPE (which is taken care of by the Socket class). 2012-04-24 19:55:18 +02:00
Gunnar Beutner 6ab5f710b8 Fixed typo that caused TLSClient::WantsToRead() to fail. 2012-04-24 19:53:47 +02:00
Gunnar Beutner fa9449fc73 SSL bugfixes. 2012-04-24 16:27:23 +02:00
Gunnar Beutner e5b146b792 Updated authentication subsystem to use SSL certificates. 2012-04-24 15:56:48 +02:00
Gunnar Beutner 4f6aa3236c Implemented error handling and certificate verification for SSL. 2012-04-24 14:54:05 +02:00
Gunnar Beutner b89c6abab6 Build fixes for *NIX. 2012-04-24 14:04:51 +02:00
Gunnar Beutner 21ef4836ee Implement SSL support. 2012-04-24 14:02:15 +02:00
Gunnar Beutner f7acf4ba3f Code cleanups.
Proper error handling for some *NIX functions.
2012-04-23 09:48:20 +02:00
Gunnar Beutner 42749696b6 Build fix for gcc. 2012-04-23 09:47:46 +02:00
Gunnar Beutner 09001efd18 Build fix for gcc. 2012-04-23 08:42:24 +02:00
Gunnar Beutner 69c30c264a Code cleanup 2012-04-22 16:45:31 +02:00
Gunnar Beutner bf1e07b686 Bugfix for reconnection handling. 2012-04-20 16:44:32 +02:00
Gunnar Beutner 90c4d6624b Fixed weak ptr deref bug. 2012-04-20 16:25:05 +02:00
Gunnar Beutner 51b3fe14e7 Added 'replicated' property for config objects. 2012-04-20 14:22:50 +02:00
Gunnar Beutner 011ba0e6d7 Build fix for gcc. 2012-04-20 13:52:32 +02:00
Gunnar Beutner b1256d9fe9 Cleaned up message classes. 2012-04-20 13:51:39 +02:00
Gunnar Beutner c11231f4e7 Added placeholders for event persistance handling. 2012-04-19 12:16:52 +02:00
Gunnar Beutner 2cd43ed8c6 Refactored subscription handling into a separate component. 2012-04-19 11:29:36 +02:00
Gunnar Beutner fd64dc5a99 Bugfix: Make sure timeval is valid. 2012-04-19 09:41:12 +02:00
Gunnar Beutner 8621717f4c Set SO_REUSEADDR for listeners. 2012-04-19 09:31:24 +02:00