Commit Graph

150 Commits

Author SHA1 Message Date
Gunnar Beutner 3846a10f0e Unset force_next_check after each check. 2013-01-28 13:24:51 +01:00
Gunnar Beutner 335a0b3067 Implement support for enabling/disabling passive checks. 2013-01-24 23:11:54 +01:00
Gunnar Beutner 8819b4c843 Bug fix: Remove pending services from the idle services set. 2013-01-24 11:14:17 +01:00
Gunnar Beutner 7447d340cc Bug fix: Continue executing checks even if the first matching service is disabled. 2013-01-24 11:07:37 +01:00
Gunnar Beutner e334f126c8 Checker: don't report missed checks after restarting Icinga
Fixes #3253
2013-01-23 15:28:32 +01:00
Gunnar Beutner 71ec1d2b95 Implement enable_checks property for services.
Fixes #3550
2013-01-22 16:01:08 +01:00
Gunnar Beutner 7e31cb639f Implement property change handler for next_check.
Fixes #3547
2013-01-22 12:44:23 +01:00
Gunnar Beutner 8c2ab8f552 Move service check code into the Service class.
Fixes #3546
2013-01-22 11:07:09 +01:00
Gunnar Beutner 989d7139f3 Refactor scheduling stuff from *CheckTask into the checker component
Fixes #3067
2013-01-22 09:40:37 +01:00
Gunnar Beutner 02de634c12 Implement REGISTER_SCRIPTFUNCTION() and clean up how check types are registered. 2013-01-22 09:21:50 +01:00
Gunnar Beutner 5a7aeb1f19 Fix: Endpoints were not properly marked as local. 2013-01-18 09:37:27 +01:00
Gunnar Beutner 3fe13b3ad3 Fixed grammar mistake. 2012-10-15 08:54:08 +02:00
Gunnar Beutner ac11c84813 Only log check timer when we actually created any tasks. 2012-10-15 08:52:31 +02:00
Gunnar Beutner f53f8e64fd Renamed NagiosCheckTask to PluginCheckTask.
Fixes #3146
2012-09-25 09:08:50 +02:00
Gunnar Beutner b9b009b6da Build fix for Windows. 2012-09-21 16:28:14 +02:00
Gunnar Beutner bb8935fe9b Added Win64 build support. 2012-09-21 16:15:36 +02:00
Gunnar Beutner 97829fbfcd Cleaned up the code a bit. 2012-09-21 09:43:06 +02:00
Gunnar Beutner 8e4bdf3872 Build fixes for Windows. 2012-09-10 14:35:01 +02:00
Gunnar Beutner 037e3d913b Refactored the libraries. 2012-09-10 14:07:32 +02:00
Gunnar Beutner c7b29c6b46 Build fix for Windows. 2012-09-07 11:46:38 +02:00
Gunnar Beutner 9bc93ce4a9 Renamed 'doc' to 'docs'.
Moved Doxygen files to docs/.
Removed cJSON directory.
Moved libraries into lib/.
Renamed 'config' to 'm4'.
Renamed 'dyn' library to 'config'.
2012-09-07 10:27:31 +02:00
Gunnar Beutner 8dcb8bdd2e Fixed notification for missed checks. 2012-09-04 10:45:00 +02:00
Gunnar Beutner 4f39e10a05 Log missed checks. 2012-09-03 12:36:35 +02:00
Gunnar Beutner dc6246642f Implemented replication for Endpoint objects. 2012-09-03 10:29:02 +02:00
Gunnar Beutner 8b87e30197 Removed roles/publications. 2012-08-14 10:53:04 +02:00
Gunnar Beutner c0d02291a2 Removed incorrect assert(). 2012-08-06 10:01:45 +02:00
Gunnar Beutner d8be3f088f Bugfix for restoring objects from the retention.dat file. 2012-08-04 14:13:04 +02:00
Gunnar Beutner 1de42d08f2 Use boost::multi_index instead of a priority queue. 2012-08-04 13:49:25 +02:00
Gunnar Beutner 85d912feb5 Fixed scheduling bug. 2012-08-04 10:45:21 +02:00
Gunnar Beutner 22dabfc60d Updated the checker and delegation components to use replication for the "checker" property. 2012-08-03 23:03:58 +02:00
Gunnar Beutner 88776a4be8 Fixed task statistics. 2012-08-03 14:07:25 +02:00
Gunnar Beutner d789cee443 Build fixes and code cleanup. 2012-08-03 13:19:55 +02:00
Gunnar Beutner a38379c56d Implemented support for replicating object tags [WIP - broken]. 2012-08-02 11:45:50 +02:00
Gunnar Beutner 8c185a38b0 Renamed ConfigObject to DynamicObject. 2012-07-30 10:17:29 +02:00
Gunnar Beutner 24a5a10e00 Refactored ConfigObject adapter classes. 2012-07-27 19:56:57 +02:00
Gunnar Beutner 1eb25ad4e9 Keep track of time using fractions of seconds. 2012-07-25 12:59:17 +02:00
Gunnar Beutner d1e7c15178 Removed delegation::ServiceStatus message (obsoleted by the domain concept) 2012-07-25 09:03:02 +02:00
Gunnar Beutner 0423f42d03 Cleaned up status calculation code. 2012-07-24 15:38:30 +02:00
Gunnar Beutner 7d1ec0332d Removed CIB::RequireInformation. 2012-07-20 14:30:35 +02:00
Gunnar Beutner 24494a78bc Moved calculation of next check timestamp into the cibsync component. 2012-07-18 11:52:22 +02:00
Gunnar Beutner f6c95efa45 Try to more uniformly distribute checks in their check interval. 2012-07-17 19:10:14 +02:00
Gunnar Beutner 6707bfeb26 Updated delegation/checker to use cibsync rather than sending service objects. 2012-07-17 12:57:21 +02:00
Gunnar Beutner 9c7c039365 Implemented native::NullCheck check method. 2012-07-16 15:10:42 +02:00
Gunnar Beutner 7270fb160c Renamed "hooks" to "methods". 2012-07-16 08:19:51 +02:00
Gunnar Beutner fd38babd98 More bugfixes for AsyncTask. 2012-07-15 17:29:59 +02:00
Gunnar Beutner 310edc1074 Re-enabled /MP (parallel builds) on Windows. 2012-07-15 13:15:51 +02:00
Gunnar Beutner d703f80e62 Enabled pre-compiled headers for Windows builds. 2012-07-15 13:13:19 +02:00
Gunnar Beutner 3e472012d1 Implemented exception support for AsyncTasks. 2012-07-15 10:58:03 +02:00
Gunnar Beutner fe237e0145 Bugfixes for the ScriptTask feature. 2012-07-14 16:49:21 +02:00
Gunnar Beutner 30aa16d9dc Implemented script tasks. 2012-07-14 15:59:59 +02:00
Gunnar Beutner 6cbccdc91c Cleaned up AsyncTask class. 2012-07-14 13:57:50 +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 7d859e2e18 Made logging more modular. 2012-07-10 12:21:19 +02:00
Gunnar Beutner 777f39c1ef Renamed Dictionary::{Set,Get}Property -> Dictionary::{Set,Get} 2012-07-09 16:19:56 +02:00
Gunnar Beutner 28f88df37c Fixed build on Win32. 2012-07-07 13:17:50 +02:00
Gunnar Beutner 37cf22aaf0 Implemented ConfigItemBuilder class. 2012-07-06 14:33:10 +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 512f46907e Compilation fixes for Windows. 2012-07-02 19:09:45 +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 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 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 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 e8a44ad2fb Bugfixes, additional output for delegations. 2012-06-22 07:24:50 +02:00
Gunnar Beutner d4fb11d427 Even more bugfixes. 2012-06-21 16:16:53 +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 ee2c14414c Warn about latency issues. 2012-06-20 15:24:47 +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 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