Commit Graph

1162 Commits

Author SHA1 Message Date
Gunnar Beutner e540685e13 Implement support for constants in the config parser.
Refs #4946
2013-12-04 11:32:45 +01:00
Gunnar Beutner 30c989074b Implement support for making script variables constant.
Refs #4946
2013-12-04 10:41:26 +01:00
Gunnar Beutner c92625770c Fix leak in the config parser.
Refs #4946
2013-12-04 10:39:46 +01:00
Gunnar Beutner 6625346922 Speed up config compiler.
Fixes #5255
2013-12-03 09:59:21 +01:00
Gunnar Beutner 52d2066995 Avoid temporary String objects in PerfdataValue::Format.
Fixes #5248
2013-12-02 12:55:35 +01:00
Gunnar Beutner 4648b82b33 Fix compiler warning for Utility::GlobRecursive.
Refs #5246
2013-12-02 11:18:16 +01:00
Gunnar Beutner 29f9117e58 Avoid using dynamic_pointer_cast when possible.
Refs #5246
2013-12-02 11:18:16 +01:00
Gunnar Beutner 954d2d53a2 Further decrease WQ lock contention.
Refs #5246
2013-12-02 11:18:16 +01:00
Gunnar Beutner 553bd3246b Improve compatibility with -fvisibility=hidden.
Refs #5246
2013-12-02 11:07:41 +01:00
Gunnar Beutner f05858d3ad Avoid unnecessary copies when iterating over dictionaries.
Refs #5246
2013-12-02 11:07:38 +01:00
Gunnar Beutner 1c0f9fe9ac Fix WorkQueue lock contention.
Fixes #5245
2013-12-02 08:38:53 +01:00
Gunnar Beutner 9f7e5b1845 Fix compiler warning.
Refs #5245
2013-11-29 17:06:48 +01:00
Gunnar Beutner dd200d0937 Increase default work queue size.
Fixes #5244
2013-11-29 15:27:11 +01:00
Gunnar Beutner 6e84800538 Fix indentation in CompatUtility::GetServiceNotification*
Fixes #5242
2013-11-29 12:28:17 +01:00
Gunnar Beutner f8d2172c27 Implement include_recursive config directive.
Fixes #5238
2013-11-29 12:26:31 +01:00
Gunnar Beutner cac4167e79 Fix initial check schedule.
Fixes #5240
2013-11-28 20:56:48 +01:00
Gunnar Beutner 4ffc22516a Renice child processes.
Fixes #5237
2013-11-28 15:15:28 +01:00
Gunnar Beutner f9c53ad295 Implement workqueue statistics.
Refs #5235
2013-11-28 12:12:24 +01:00
Gunnar Beutner 5daedd2dea Remove unnecessary host config update.
Refs #5235
2013-11-28 10:37:22 +01:00
Gunnar Beutner 6d53bd1c8f Make sure IDO reconnect attempts don't recurse.
Refs #5235
2013-11-28 10:36:43 +01:00
Gunnar Beutner 640136fbdb Make object, type and variable names case-sensitive.
Fixes #5228
2013-11-27 12:29:42 +01:00
Gunnar Beutner 25da7a2291 Add sysconf dir to the version info message.
Refs #5224
2013-11-27 11:47:14 +01:00
Gunnar Beutner 9d8edd286f Implement IcingaSysconfDir variable.
Refs #5224
2013-11-27 09:46:31 +01:00
Gunnar Beutner 4ed798385d Improve bug messages.
Refs #4635
2013-11-26 18:35:36 +01:00
Gunnar Beutner 6428fc6123 Implement override_check_period.
Refs #4746
2013-11-26 13:43:56 +01:00
Gunnar Beutner 245dd66bab Implement override_max_check_attempts.
Refs #4746
2013-11-26 13:27:41 +01:00
Gunnar Beutner 1c8fb7a198 Implement override_check_command.
Refs #4746
2013-11-26 13:26:21 +01:00
Gunnar Beutner b9f9cd03d2 Implement override_event_command.
Refs #4746
2013-11-26 12:44:49 +01:00
Gunnar Beutner ae3eaee1f4 Implement override_enable_perfdata.
Refs #4746
2013-11-26 12:33:16 +01:00
Gunnar Beutner d8c9d6a88a Implement override_enable_flapping.
Refs #4746
2013-11-26 12:33:16 +01:00
Gunnar Beutner 04061adc01 Implement override_enable_notifications.
Refs #4746
2013-11-26 12:33:10 +01:00
Gunnar Beutner d4cc6fb5e0 Improve compatibility with Solaris.
Fixes #5129
2013-11-24 01:00:35 +01:00
Gunnar Beutner e32a149049 Glob: Use stat() instead of lstat().
Refs #5123
2013-11-22 10:41:57 +01:00
Gunnar Beutner 7a3a8de83c Optimize IDO queries.
Refs #5124
2013-11-22 10:32:53 +01:00
Gunnar Beutner b915494157 Avoid unnecessary updates for the is_active column.
Fixes #5124
2013-11-22 10:13:42 +01:00
Gunnar Beutner 0978e46d5a Implement file type flags for Utility::Glob.
Fixes #5123
2013-11-22 09:03:52 +01:00
Gunnar Beutner 45161fe66d Improve latency after start-up.
Fixes #5121
2013-11-21 16:09:21 +01:00
Gunnar Beutner 7a79886922 Fix deadlock in WorkQueue::Enqueue.
Fixes #5120
2013-11-21 13:54:01 +01:00
Gunnar Beutner 91338a7e49 Remove redundant checks.
Fixes #5071
2013-11-21 12:23:55 +01:00
Gunnar Beutner 1fc47e67a8 Implement the IcingaCheckTask check type.
Fixes #2822
2013-11-21 11:40:03 +01:00
Gunnar Beutner 2cefcb5bfa Update minimum flex version.
Fixes #5072
2013-11-21 11:22:51 +01:00
Gunnar Beutner 92dd32eb68 Implement support for high-level stack traces.
Refs #5085
2013-11-21 09:42:27 +01:00
Gunnar Beutner 062110339b Fix spelling mistake.
Refs #5085
2013-11-21 08:30:16 +01:00
Gunnar Beutner 43ab2b69a4 Fix handle leak in the ThreadPool class.
Fixes #5078
2013-11-21 07:46:12 +01:00
Gunnar Beutner 39dcf20a89 Implement support for stack traces for STL exceptions.
Fixes #5114
2013-11-20 21:55:14 +01:00
Gunnar Beutner 4534bb08c5 Implement DbCatEverything flag.
Fixes #5096
2013-11-20 16:47:46 +01:00
Gunnar Beutner 933ac5f403 Clear ID cache when (re-)connecting.
Fixes #5108
2013-11-20 09:32:30 +01:00
Gunnar Beutner 88ac76f2ca Fix another broken IDO query.
Refs #5088
2013-11-19 16:34:41 +01:00
Gunnar Beutner 77b058e22c Fix incorrect IDO queries.
Fixes #5088
2013-11-19 12:55:37 +01:00
Gunnar Beutner d88268bd77 Fix group assignments in the config parser.
Fixes #5090
2013-11-17 20:50:56 +01:00
Gunnar Beutner 1676af8b2d Implement signal handler for SIGTERM.
Fixes #5087
2013-11-17 20:04:27 +01:00
Gunnar Beutner 0f28e55925 Implement support for non-standard "multi" performance data.
Refs #5082
2013-11-17 03:29:43 +01:00
Gunnar Beutner d95c6c7d85 Remove trailing spaces from performance data.
Refs #5082
2013-11-17 01:00:26 +01:00
Gunnar Beutner f9b107d0bf Accept invalid performance data.
Refs #5082
2013-11-17 00:05:31 +01:00
Gunnar Beutner 8c24638ff1 Fix latency calculation.
Refs #5050
2013-11-15 14:40:14 +01:00
Gunnar Beutner 687c88bea0 Don't kill too many worker threads at once.
Refs #5050
2013-11-15 14:04:03 +01:00
Gunnar Beutner e2a7cb32e5 Use normal check interval for services which haven't been checked yet.
Refs #5050
2013-11-15 12:57:04 +01:00
Gunnar Beutner 979df4e110 Create new threads more aggressively right after program start.
Refs #5050
2013-11-15 12:36:52 +01:00
Gunnar Beutner 9a93cc83b3 Include thread pool ID in debug messages.
Refs #5050
2013-11-15 12:20:19 +01:00
Gunnar Beutner 2dacc047ec Remove quotes from perfdata keys.
Fixes #5031
2013-11-13 15:43:59 +01:00
Gunnar Beutner f5f8de8137 Fix compatibility with OpenSSL <1.0.0.
Refs #3657
2013-11-13 10:36:57 +01:00
Gunnar Beutner a5e3c70bcc Implement support for CRLs.
Fixes #3657
2013-11-13 10:30:40 +01:00
Gunnar Beutner 438d5c0f57 Move EmptyTimePeriod and EvenMinutesTimePeriod to libmethods.
Fixes #5032
2013-11-13 09:41:06 +01:00
Gunnar Beutner 6ccf4497f2 Fix unit tests on Windows.
Fixes #5068
2013-11-13 09:08:17 +01:00
Gunnar Beutner 81c4dd40ab Make sure that Notification::notification_command is set.
Fixes #5056
2013-11-11 17:26:20 +01:00
Gunnar Beutner 0dba71ecaf Fix service and notification templates.
Fixes #5058
2013-11-11 16:42:58 +01:00
Michael Friedrich d1419a3067 Fix CompatUtility::{ConvertTimestamp,GetCheckResultOutput} should return std::pair.
Fixes #5045
2013-11-11 15:06:23 +01:00
Gunnar Beutner 95712e46d4 Fix compiler warning in PerfdataValue::Parse.
Fixes #5055
2013-11-11 13:14:42 +01:00
Gunnar Beutner 4f1cb83f31 Fix Convert::ToString.
Fixes #5054
2013-11-11 13:04:18 +01:00
Gunnar Beutner 92c8d71bf3 Implement one-time notification for escalation contacts.
Fixes #5011
2013-11-11 11:21:23 +01:00
Gunnar Beutner 893243db5f Fix exception in Value::ToJson().
Refs #5049
2013-11-11 09:31:36 +01:00
Gunnar Beutner eb746b9929 Optimize DynamicObject::HasAuthority().
Refs #5049
2013-11-11 08:39:35 +01:00
Gunnar Beutner f7171e3e90 Optimize Service::GetHost.
Refs #5049
2013-11-10 22:04:18 +01:00
Gunnar Beutner 9a764d8a08 Optimize signal calls.
Refs #5049
2013-11-10 16:53:57 +01:00
Gunnar Beutner 45a6ca6cb3 Fix type for CheckResult::command.
Refs #5039
2013-11-10 01:29:09 +01:00
Gunnar Beutner e2292ce5f7 Refactor the Service::Is{Comment,Downtime}* methods.
Refs #5039
2013-11-09 22:20:49 +01:00
Gunnar Beutner ec1a7bbfcb Implement class for service downtimes.
Refs #5039
2013-11-09 22:08:26 +01:00
Gunnar Beutner cb526ddccc Implement class for service comments.
Refs #5039
2013-11-09 21:19:52 +01:00
Gunnar Beutner 17834e0a77 Ignore invalid fields in the state file.
Refs #5039
2013-11-09 18:30:17 +01:00
Gunnar Beutner 112f26dc19 Replace check result dictionaries with a class.
Refs #5039
2013-11-09 15:26:01 +01:00
Gunnar Beutner e525410b75 Add missing new-line.
Refs #5036
2013-11-08 21:56:42 +01:00
Gunnar Beutner ba6f64a0ec Remove GetType().
Refs #5036
2013-11-08 21:37:21 +01:00
Gunnar Beutner 2a6151e935 Use anonymous namespaces for INITIALIZE_ONCE().
Refs #5036
2013-11-08 21:12:47 +01:00
Gunnar Beutner 98c3431dda Add missing == operator for the Value class.
Refs #5036
2013-11-08 21:12:22 +01:00
Gunnar Beutner e546cd854d Clean up the DynamicType class.
Refs #5036
2013-11-08 16:07:21 +01:00
Gunnar Beutner 7c990eff6e Add missing copyrights.
Refs #5036
2013-11-08 16:06:59 +01:00
Gunnar Beutner 0a67e760bd Optimize GraphiteWriter::SendMetric.
Fixes #5037
2013-11-08 15:43:14 +01:00
Gunnar Beutner a84536bea3 Implement serializer support for arbitrary classes.
Fixes #5024
2013-11-08 14:08:59 +01:00
Gunnar Beutner 59739d9ae4 Fix crash in CompatUtility::GetCheckResultPerfdata.
Refs #5026
2013-11-08 14:00:38 +01:00
Gunnar Beutner ceb0a54baf Implement support for performance data unit prefixes.
Fixes #5026
2013-11-08 08:39:05 +01:00
Gunnar Beutner 5aba175e18 Use PluginUtility::{Parse,Format}Perfdata for check results.
Refs #2710
2013-11-07 16:07:52 +01:00
Gunnar Beutner 2af388e4ef Implement performance data parser.
Refs #2710
2013-11-07 16:07:52 +01:00
Gunnar Beutner 038be974e4 Implement additional operators for the Value and String classes.
Refs #2710
2013-11-07 16:07:52 +01:00
Gunnar Beutner 14553139ae Implement String::FindFirstNotOf.
Refs #2710
2013-11-07 16:07:52 +01:00
Gunnar Beutner 6acc017707 Remove namespace qualifiers for boost::make_shared and boost::enable_shared_from_this.
Fixes #5012
2013-11-07 08:28:33 +01:00
Gunnar Beutner 5e68746128 Implement Utility::DemangleSymbolName on Windows.
Fixes #5010
2013-11-05 20:26:05 +01:00
Gunnar Beutner 27f527d0ad Implement String::GetData.
Fixes #5008
2013-11-05 18:59:39 +01:00
Gunnar Beutner 14ec0b6642 Link libhello against libconfig.
Refs #4995
2013-11-05 15:04:13 +01:00
Gunnar Beutner 2617521ce3 Fix exception in Exception in IdoPgsqlConnection::Query.
Fixes #5002
2013-11-05 13:35:59 +01:00
Gunnar Beutner 614e33e900 Fix base class for the Hello class.
Refs #4996
2013-11-05 09:01:46 +01:00
Gunnar Beutner b5b56e5438 Implement Type::GetBaseType().
Refs #4996
2013-11-05 08:56:35 +01:00
Gunnar Beutner b1ddc71925 Merge ReflectionObject methods into the Object class.
Refs #4996
2013-11-05 08:56:30 +01:00
Gunnar Beutner 2140cef041 Implement the ReflectionType class.
Refs #4996
2013-11-05 08:56:18 +01:00
Gunnar Beutner 6dd6c605d4 Don't explicitly load libmethods in libicinga.
Refs #4995
2013-11-05 08:34:34 +01:00
Gunnar Beutner 3cfccba1ea Implement "hello world" test app.
Refs #4995
2013-11-05 08:34:34 +01:00
Gunnar Beutner 264fdf40d5 Implement PostgreSQL adapter for IDO.
Fixes #4777
2013-11-04 16:05:24 +01:00
Gunnar Beutner a6b0233b75 Make sure the name of the initial library (libicinga) is not hard-coded.
Refs #4959
2013-11-04 15:33:29 +01:00
Gunnar Beutner 871f6febc7 Move methods to a separate library.
Refs #4959
2013-11-04 15:29:18 +01:00
Gunnar Beutner 22f0f388a7 Link libase against libdl.
Fixes #4994
2013-11-04 09:38:13 +01:00
Michael Friedrich 6eae4508aa Fix macros requiring last check result.
Fixes #4981
2013-11-04 09:28:23 +01:00
Gunnar Beutner 8586f90379 Implement support for loading OS X libraries.
Refs #4993
2013-11-04 07:49:51 +01:00
Gunnar Beutner ee07cc9d06 Fix: ASSERT in WorkQueue::Enqueue fails
Refs #4991
2013-11-03 13:57:18 +01:00
Gunnar Beutner 5f0ebed72b Improve compatibility with ancient versions of Bison.
Refs #4962
2013-11-03 13:45:26 +01:00
Gunnar Beutner f2307c4242 Add cmake build files.
Refs #4962
2013-11-03 13:45:26 +01:00
Gunnar Beutner 2c143fbdf8 Remove unused files.
Refs #4962
2013-11-03 11:12:47 +01:00
Gunnar Beutner 3308eb1d87 Add missing newlines.
Refs #4990
2013-11-03 10:59:01 +01:00
Gunnar Beutner 375c5a53c6 Don't join threads that are already dead.
Refs #4990
2013-11-03 10:58:57 +01:00
Gunnar Beutner 8279fbd633 Fix deadlock in ThreadPool::Join.
Refs #4989
2013-11-02 10:38:54 +01:00
Gunnar Beutner fcc96cfe8f Fix compilation with Visual Studio 2013.
Refs #4987
2013-11-01 00:13:30 +01:00
Gunnar Beutner 6abf16e6ed Fix deadlock in ThreadPool::Join.
Refs #4986
2013-10-31 19:10:36 +01:00
Michael Friedrich d21d79a36c CompatUtility: Use functionality in compat/ido/livestatus.
refs #4735
2013-10-31 16:08:55 +01:00
Michael Friedrich 75b69411b9 Livestatus: Add log table.
refs #4433
2013-10-31 13:39:16 +01:00
Gunnar Beutner 9c152f1f5c Fix command_line accessor.
Refs #4980
2013-10-30 19:32:15 +01:00
Gunnar Beutner 7a751eb8af Fix DynamicObject::HasAuthority.
Refs #4979
2013-10-30 15:59:14 +01:00
Gunnar Beutner e73197bc23 Refactor DbConnection::CleanUpHandler.
Refs #4969
2013-10-30 14:08:09 +01:00
Gunnar Beutner e020a80bf8 Clean up DbConnection / IdoMysqlConnection.
Refs #4969
2013-10-30 14:07:26 +01:00
Gunnar Beutner 4ce0f1e7bb Implement WorkQueue::GetThreadId.
Refs #4758
2013-10-30 13:13:09 +01:00
Gunnar Beutner ef55412855 Fix libdl detection on FreeBSD.
Refs #4977
2013-10-30 13:01:50 +01:00
Gunnar Beutner dc21088680 Fix make dist.
Refs #4976
2013-10-30 12:18:08 +01:00
Gunnar Beutner 9f1c4539dc Remove libltdl dependency.
Refs #4964
2013-10-30 12:00:55 +01:00
Gunnar Beutner ff737e4cb5 Add script constants for the DbCat* filter categories.
Refs #4782
2013-10-30 10:20:00 +01:00
Gunnar Beutner 8c5bff3f75 Implement data processing options (DbConnection::categories).
Refs #4782
2013-10-30 10:19:56 +01:00
Gunnar Beutner f39eff323e Implement DbQuery::Category field.
Refs #4782
2013-10-30 09:58:55 +01:00
Gunnar Beutner 24d018a058 Fix short_name and display_name properties.
Refs #4973
2013-10-30 09:55:00 +01:00
Gunnar Beutner db4b3b78d6 Implement class compiler.
Refs #4963
2013-10-28 14:27:36 +01:00
Gunnar Beutner d14775f28f Fix unnecessary rebuilds of the config_parser.yy file. 2013-10-26 01:22:25 +02:00
Gunnar Beutner 7c933f7063 Clean up indentation. 2013-10-24 07:38:29 +02:00
Gunnar Beutner 963dccfac8 Add RandomCheck similar to NullCheck.
Refs #4896
2013-10-23 13:51:52 +02:00
Gunnar Beutner f351fe0bd7 Add missing library. 2013-10-22 11:31:15 +02:00
Gunnar Beutner ab402cbfaf Remove unused #includes. 2013-10-22 10:13:35 +02:00
Michael Friedrich 622e4d7f25 Start log flush timer after binding the stream.
refs #4890
2013-10-21 14:15:21 +02:00
Michael Friedrich 07d9a59fe0 Flush StreamLogger periodically.
fixes #4890
2013-10-21 14:09:14 +02:00
Gunnar Beutner 3cb6e3bf82 Make sure to #include <pthread_np.h> on FreeBSD. 2013-10-21 09:52:45 +02:00
Gunnar Beutner 2beb4e0022 Another build fix. 2013-10-20 15:22:21 +02:00
Gunnar Beutner f59a56e4fc Build fix. 2013-10-20 15:20:54 +02:00
Gunnar Beutner 599429ec93 config: Implement AST support for const expressions. 2013-10-20 15:07:55 +02:00
Michael Friedrich 39f11334ab Add NOTIFICATION{AUTHOR,AUTHORNAME,COMMENT} macros.
fixes #4914
2013-10-19 00:19:16 +02:00
Michael Friedrich 886b1c8dd7 Fix missing object lock in ExternalCommandProcessor::RemoveSvcAcknowledgement(). 2013-10-19 00:17:28 +02:00
Michael Friedrich 641bc96b84 Fix perfdata in NullCheck. 2013-10-18 20:04:56 +02:00
Michael Friedrich bc3411fe8d GraphiteWriter: Refactor perfdata parsing. 2013-10-18 16:27:57 +02:00