Commit Graph

425 Commits

Author SHA1 Message Date
Gunnar Beutner 656825701d Removed unused code. 2012-07-14 13:33:04 +02:00
Gunnar Beutner eb2e4ac205 Bugfixes for the Process/AsyncTask classes. 2012-07-14 12:44:37 +02:00
Gunnar Beutner 20dbad0131 Implemented Process class, cleaned up NagiosCheckTask. 2012-07-13 21:00:54 +02:00
Gunnar Beutner a17c614d96 Fixed global macros. 2012-07-13 11:40:57 +02:00
Gunnar Beutner 1405d1961a Cleaned up the Variant class. 2012-07-11 20:55:46 +02:00
Gunnar Beutner a64c99c176 Implemented logging to files and made logging configurable. 2012-07-10 15:14:45 +02:00
Gunnar Beutner 7d859e2e18 Made logging more modular. 2012-07-10 12:21:19 +02:00
Gunnar Beutner 8dc5ba7632 Added missing GPL headers and Visual Studio filters. 2012-07-09 20:32:02 +02:00
Gunnar Beutner 0032e32026 Force compat module to write status.dat/objects.cache right after program start. 2012-07-09 16:22:38 +02:00
Gunnar Beutner 777f39c1ef Renamed Dictionary::{Set,Get}Property -> Dictionary::{Set,Get} 2012-07-09 16:19:56 +02:00
Gunnar Beutner 8d27f66b83 Moved host reachability/state code into the cib library. 2012-07-09 13:27:59 +02:00
Gunnar Beutner c8261fa8f2 Auto-detect host parents. 2012-07-09 12:44:31 +02:00
Gunnar Beutner 746d24c9a2 Distinguish between 'dependencies' (reachability) and 'hostchecks' (host status). 2012-07-09 10:28:49 +02:00
Gunnar Beutner 55ca6fd276 Implemented host dependencies 2012-07-09 10:09:53 +02:00
Gunnar Beutner 0f471683cd Bugfixes for the 'convenience' component. 2012-07-08 11:37:15 +02:00
Gunnar Beutner 4ad1789e33 Implemented extended service template format. 2012-07-08 10:20:54 +02:00
Gunnar Beutner 28f88df37c Fixed build on Win32. 2012-07-07 13:17:50 +02:00
Gunnar Beutner de55b5d0d2 Don't instantiate service objects for host templates. 2012-07-06 15:52:13 +02:00
Gunnar Beutner acf08b7a4e Bugfix for the convenience component. 2012-07-06 14:36:58 +02:00
Gunnar Beutner 37cf22aaf0 Implemented ConfigItemBuilder class. 2012-07-06 14:33:10 +02:00
Gunnar Beutner e0bf25e907 Removed ConfigVM class. 2012-07-06 11:35:20 +02:00
Gunnar Beutner 9b7251abb9 Implemented 'services' property for host definitions. 2012-07-06 11:22:38 +02:00
Gunnar Beutner a11a36154f Bugfix: Use service alias in service group definition. 2012-07-06 11:21:19 +02:00
Gunnar Beutner 8955f17c41 Undelegate services when their config objects are removed. 2012-07-04 16:50:25 +02:00
Gunnar Beutner d26d8e7bb7 Re-designed reachability detection. 2012-07-03 15:11:54 +02:00
Gunnar Beutner f9139a6f97 Bugfixes. 2012-07-03 15:01:09 +02:00
Gunnar Beutner 734ec2f5fb Implemented service dependencies. 2012-07-03 14:18:46 +02:00
Gunnar Beutner d577406a66 Implemented ServiceStatusMessage class. 2012-07-03 10:41:25 +02:00
Gunnar Beutner 5dc74ecf0e Build fixes for *NIX. 2012-07-03 10:00:44 +02:00
Gunnar Beutner a7be3a40c9 Ignore remote object updates when local object is newer. 2012-07-02 19:25:33 +02:00
Gunnar Beutner 512f46907e Compilation fixes for Windows. 2012-07-02 19:09:45 +02:00
Gunnar Beutner 40350bfce8 Make checkers configurable. 2012-07-02 16:19:43 +02:00
Gunnar Beutner 45fef3573c Disable freshness stuff in status.dat 2012-07-02 15:49:36 +02:00
Gunnar Beutner 1b421d0cc0 Bugfixes. 2012-07-02 15:48:49 +02:00
Gunnar Beutner a1423371d0 Moved configrpc code into the cibsync module. 2012-07-02 15:08:15 +02:00
Gunnar Beutner 1db53b84e6 Bugfixes. 2012-07-02 14:43:51 +02:00
Gunnar Beutner 5e4a3eb181 Don't allow __local property for replicated objects. 2012-07-02 12:57:53 +02:00
Gunnar Beutner f2420fb17a Moved CIB stuff into a separate library and loadable component. 2012-07-02 12:34:54 +02:00
Gunnar Beutner 5649f3efb2 Renamed m_*Endpoint to m_Endpoint. 2012-07-02 11:07:54 +02:00
Gunnar Beutner 7d5ab3d890 Implemented support for the 'include' config directive. 2012-07-02 10:29:32 +02:00
Gunnar Beutner 334c247655 Win32 bugfixes. 2012-07-01 13:21:49 +02:00
Gunnar Beutner 338e2bcbb1 Renamed DictionaryIterator to Dictionary::Iterator. 2012-06-30 15:22:51 +02:00
Gunnar Beutner b576bb5ecc Implemented host and service groups. 2012-06-30 13:39:55 +02:00
Gunnar Beutner 80bec5fcd4 Performance fixes for the compat module.
Split plugin output/perfdata.
2012-06-29 14:14:51 +02:00
Gunnar Beutner 3ec746bd2f Moved task stats to the CIB.
Refactored CheckResult class into a message-based class.
2012-06-29 12:18:50 +02:00
Gunnar Beutner b54ebc56dc Fixed configrpc module. 2012-06-29 11:59:53 +02:00
Gunnar Beutner 2272e410c2 Implement task statistics. 2012-06-28 15:43:49 +02:00
Gunnar Beutner ab08736338 Bugfixes and config conversion script. 2012-06-28 14:24:41 +02:00
Gunnar Beutner ccc5f0c61d Fixed execution time calculation. 2012-06-27 23:57:46 +02:00
Gunnar Beutner d11da74931 Fixed latency calculation. 2012-06-27 23:38:50 +02:00
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 22f301073e Implemented soft/hard states. 2012-06-25 15:42:46 +02:00
Gunnar Beutner 593e329248 Added serialization support for check results.
Bugfixes.
2012-06-25 14:13:24 +02:00
Gunnar Beutner 833ede8b3a Get rid off threadpool for nagios checks. 2012-06-24 16:30:16 +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 69d3e71b03 Bugfix: use service identity rather than just their names. 2012-06-22 12:22:36 +02:00
Gunnar Beutner e294cf6686 Bugfixes. 2012-06-22 12:05:25 +02:00
Gunnar Beutner f585dc1b29 Re-assign services from dead endoints. 2012-06-22 08:30:36 +02:00
Gunnar Beutner e8a44ad2fb Bugfixes, additional output for delegations. 2012-06-22 07:24:50 +02:00
Gunnar Beutner 1d7a3f6c75 Fixed infinite loop. 2012-06-21 19:52:21 +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 abd34bdaa0 More bugfixes. 2012-06-21 13:33:01 +02:00
Gunnar Beutner 628c782837 Bugfixes. 2012-06-21 13:12:16 +02:00
Gunnar Beutner bbbaca130e Bugfixes. 2012-06-21 13:08:26 +02:00
Gunnar Beutner ddeda8c512 Delegation bugfixes. 2012-06-21 12:52:13 +02:00
Gunnar Beutner db4fde9554 Bugfixes for the delegation feature. 2012-06-21 00:10:10 +02:00
Gunnar Beutner 0cffb4ed72 Implemented proper delegation support. 2012-06-20 16:55:49 +02:00
Gunnar Beutner ee2c14414c Warn about latency issues. 2012-06-20 15:24:47 +02:00
Gunnar Beutner 77029763cf Use a map (rather than a vector) for endpoints where we know the identity. 2012-06-20 15:22:39 +02:00
Gunnar Beutner 468a0ad5b2 Ignore debug log for now. 2012-06-20 10:46:18 +02:00
Gunnar Beutner 1ce92cf29a Use popen_noshell() instead of popen(). 2012-06-19 19:05:24 +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 177fbc46ec Use empty() rather than size() == 0. 2012-06-18 09:44:12 +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 74bae58f21 Bugfixes. 2012-06-18 01:42:42 +02:00
Gunnar Beutner 6648af73ae Decrease timeout for the result timer. 2012-06-17 23:10:03 +02:00
Gunnar Beutner abc8d94e5f Don't run checks for services which have pending checks. 2012-06-17 22:46:40 +02:00
Gunnar Beutner 5670e14df5 Bugfix. 2012-06-17 21:54:09 +02:00
Gunnar Beutner 9338362bf8 Bugfixes. 2012-06-17 21:27:13 +02:00
Gunnar Beutner 4c658eb889 Multi-threaded nagios checks. 2012-06-17 21:00:24 +02:00
Gunnar Beutner 728f72dcce Use adapters in the checker/delegation components. 2012-06-16 20:47:43 +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 7753e229cc Remove EventArgs struct. 2012-06-16 03:42:54 +02:00
Gunnar Beutner 0bd5323629 Prefer boost::* over C++0x features. 2012-06-15 19:32:41 +02:00
Gunnar Beutner d52afa080e Bugfixes. 2012-06-14 21:09:35 +02:00
Gunnar Beutner ac7d8688a8 Bugfixes. 2012-06-14 16:39:14 +02:00
Gunnar Beutner 146880c110 Added log messages, fixed config. 2012-06-14 16:31:38 +02:00
Gunnar Beutner 8e61490530 Checker/delegation fixes. 2012-06-14 16:09:04 +02:00
Gunnar Beutner e66285ddc5 Merge branch 'master' of github.com:gunnarbeutner/strawberry
Conflicts:
	components/checker/checkercomponent.cpp
2012-06-14 15:17:51 +02:00
Gunnar Beutner 1e1bb43dea Replaced custom event code with Boost.Signals. 2012-06-14 15:16:41 +02:00
Gunnar Beutner 27f9d9373c Added delegation component. 2012-06-14 13:21:40 +02:00
Gunnar Beutner 8346c031fb Added checker component. 2012-06-14 11:23:25 +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 c44d8d5912 Even more bugfixes. 2012-06-12 11:34:48 +02:00
Gunnar Beutner d45bcf99b1 Integrate libdyn with the configfile component. 2012-06-12 10:13:57 +02:00
Gunnar Beutner 9c3e57c858 Fixed merge conflicts. 2012-06-04 09:21:33 +02:00
Gunnar Beutner 3c92c7b2d7 Moved config parser into dyn/. 2012-05-31 09:43:46 +02:00
Gunnar Beutner d76e4b2a5b Regenerated parser. 2012-05-31 09:18:26 +02:00
Gunnar Beutner 30f5de3dc4 Refactored parser. 2012-05-31 09:14:44 +02:00
Gunnar Beutner 4bd4280737 Build fixes for windows. 2012-05-31 09:08:08 +02:00
Gunnar Beutner 57be84ab04 Added auto-generated code for the config parser (for Windows). 2012-05-31 09:03:24 +02:00
Gunnar Beutner c9a58ddba2 Updated the lexer/parser. 2012-05-31 08:59:40 +02:00
Gunnar Beutner 1825d3384a Added config parser. 2012-05-31 08:45:02 +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 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 33d67401b9 Use STL exceptions as far as possible. 2012-05-26 21:30:04 +02:00
Gunnar Beutner 94eba566af Proper integration for Boost. 2012-05-25 22:04:03 +02:00
Gunnar Beutner 04aaf2f354 Added preliminary version of the dynamic object framework. 2012-05-25 11:10:11 +02:00
Gunnar Beutner 59dcfa801c Consistent ordering for method declarations. 2012-05-21 23:42:54 +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 d02dd4eb0a Documentation update.
Code cleanup.
2012-05-18 22:56:34 +02:00
Gunnar Beutner c3cc247be0 Fixed base class for ConfigFileComponent. 2012-05-18 11:36:27 +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 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 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 1ec7c223d4 Fixed more compilation warnings. 2012-05-10 13:49:24 +02:00
Gunnar Beutner 208e055651 Removed the broker setting. 2012-05-10 12:12:48 +02:00
Gunnar Beutner 3214c29363 Added copyright headers.
Updated Debian build files.
2012-05-10 12:06:41 +02:00
Gunnar Beutner a582b2c191 Bugfix for the welcome message. 2012-05-09 15:09:14 +02:00
Gunnar Beutner 9b86c7f35f Crash fix. 2012-05-09 14:10:14 +02:00
Gunnar Beutner 42881d4b8a Build fix for RHEL 5.3 2012-05-09 13:49:26 +02:00
Gunnar Beutner f2698c0fb7 Fix method registration. 2012-05-09 12:34:11 +02:00
Gunnar Beutner 4cbf2400c0 Fixed crash in DiscoveryComponent::HasMessagePermission 2012-05-09 12:21:56 +02:00
Gunnar Beutner 2c93eea4e7 Fixed library dependencies (libtool). 2012-05-09 12:10:07 +02:00
Gunnar Beutner 18bffce0ed Implemented message-based authorisation checks. 2012-05-09 10:16:31 +02:00
Gunnar Beutner bef85cac1a Updated documentation for some of the classes. 2012-05-08 15:14:20 +02:00
Gunnar Beutner 22ad7b05dc Updated configrpc module to work with the new discovery component. 2012-05-08 13:40:22 +02:00
Gunnar Beutner 1573c19aaa Removed rpclistener/rpcconnection config object types. 2012-05-08 13:03:29 +02:00
Gunnar Beutner b2f440d2cb Documentation for the discovery module. 2012-05-08 11:58:46 +02:00
Gunnar Beutner 8ccc2be319 Bugfix for the reconnection handler. 2012-05-08 10:22:47 +02:00
Gunnar Beutner 63e318383d Bugfix: duplicate Welcome messages 2012-05-08 10:17:45 +02:00
Gunnar Beutner e7a718ac11 Windows build fixes
Added C3 test config.
2012-05-08 09:41:39 +02:00
Gunnar Beutner 4c04c47018 Implemented broker authorisation. 2012-05-08 09:20:42 +02:00
Gunnar Beutner 203d788ea5 Implemented discovery::Welcome message type. 2012-05-07 14:52:49 +02:00
Gunnar Beutner 28bdbe1ffe Cleaned up JSON-RPC client code. 2012-05-07 13:48:17 +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 0c59c675be Cleaned up demo component. 2012-04-30 13:59:54 +02:00
Gunnar Beutner 5c603ee98b Bugfix for deleting delegates. 2012-04-27 13:11:07 +02:00
Gunnar Beutner 6b4647a5dc Updated log messages. 2012-04-27 11:57:14 +02:00
Gunnar Beutner ae58a2dcda Cleaned up logging.
Implemented TCPSocket::Get*Address()
2012-04-26 16:50:47 +02:00
Gunnar Beutner 0d8b352150 Fixed subscription code. 2012-04-25 20:35:37 +02:00
Gunnar Beutner e5b146b792 Updated authentication subsystem to use SSL certificates. 2012-04-24 15:56:48 +02:00
Gunnar Beutner 576181f304 Added helper functions for commonly used IcingaApplication methods. 2012-04-24 07:17:46 +02:00
Gunnar Beutner 885f1834f1 Added discovery component. 2012-04-23 16:49:02 +02:00
Gunnar Beutner a60c7cd2a3 Updated test config. 2012-04-23 14:06:13 +02:00
Gunnar Beutner ab0a37142a Bugfixes for the demo component. 2012-04-23 14:01:31 +02:00
Gunnar Beutner d3798c4bf4 Implemented demo component. 2012-04-23 13:45:41 +02:00
Gunnar Beutner f7acf4ba3f Code cleanups.
Proper error handling for some *NIX functions.
2012-04-23 09:48:20 +02:00
Gunnar Beutner 69c30c264a Code cleanup 2012-04-22 16:45:31 +02:00
Gunnar Beutner f7f8edb875 Cleaned up configrpc. 2012-04-20 15:49:12 +02:00
Gunnar Beutner 51b3fe14e7 Added 'replicated' property for config objects. 2012-04-20 14:22:50 +02:00
Gunnar Beutner b1256d9fe9 Cleaned up message classes. 2012-04-20 13:51:39 +02:00
Gunnar Beutner 1a128e2f66 Implemented pseudo-authentication handshake. 2012-04-20 10:38:11 +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 7474b63dff Refactored messaging system. 2012-04-18 15:22:25 +02:00
Gunnar Beutner ab32aa4f71 Refactored JSON/message code. 2012-04-16 16:27:41 +02:00
Gunnar Beutner 9b20a9271e Build fixes. 2012-04-13 13:21:36 +02:00
Gunnar Beutner 9bfff6ddb7 Restructured components. 2012-04-13 13:10:35 +02:00