Commit Graph

1325 Commits

Author SHA1 Message Date
Michael Friedrich a4466ba880 Fix formatting of execution_time, latency.
Fixes #5427
2014-01-10 00:38:16 +01:00
Michael Friedrich 555d72150a Update copyright header.
Fixes #5424
2014-01-09 00:32:11 +01:00
Gunnar Beutner 3e5af43e4d Don't cache config item properties.
Refs #5400
2013-12-20 13:31:13 +01:00
Gunnar Beutner 38aa231a2d Discard unused config items as early as possibly.
Refs #5400
2013-12-20 13:31:13 +01:00
Johannes Meyer 2997680cf1 Fix indices used to access arguments of external commands
fixes #5368
2013-12-18 14:41:19 +01:00
Gunnar Beutner 3a10127bf4 Implement support for using custom variables as macros.
Fixes #5364
2013-12-18 10:53:26 +01:00
Gunnar Beutner 21fb0d9872 Implement "safe mode" for icinga::Deserialize.
Fixes #5035
2013-12-18 10:27:58 +01:00
Michael Friedrich 79f5618eba Use std::string::find() in String::Contains().
Refs #5355
2013-12-17 18:34:05 +01:00
Michael Friedrich 7fa9188df8 Add String::Contains().
Refs #5355
2013-12-17 18:34:05 +01:00
Johannes Meyer 12d32ad719 Fix crash that might occur in a situation where icinga should not crash...
refs #5356
2013-12-17 16:01:33 +01:00
Johannes Meyer 772f319926 Fix that triggered_by field is not of type int in a livestatus response
fixes #5356
2013-12-17 15:15:39 +01:00
Gunnar Beutner 9bf44b9b1d Fix: Missing warn/crit/min/max values are incorrectly set to 0.
Fixes #5358
2013-12-17 14:47:19 +01:00
Gunnar Beutner b2ec194a82 Update log level for some messages.
Fixes #5357
2013-12-17 14:26:48 +01:00
Gunnar Beutner 41d4ba169f Embed constants into lib{base,icinga,db_ido}.
Fixes #5247
2013-12-17 14:24:29 +01:00
Gunnar Beutner 6bec49bd23 Fix invalid lock in Service::UpdateSlaveNotifications.
Fixes #5354
2013-12-17 11:56:29 +01:00
Gunnar Beutner ad563cf5d2 Use CompatUtility::GetCommandLine in StatusDataWriter::DumpCommand.
Fixes #5353
2013-12-17 10:20:28 +01:00
Johannes Meyer 1bec9692c6 Fix address and address6 being empty in objects.cache
fixes #5352
2013-12-17 09:50:19 +01:00
Gunnar Beutner ddf83f33d2 Fix compiler warnings in Service::ProcessCheckResult.
Refs #5349
2013-12-17 07:55:46 +01:00
Gunnar Beutner dac4ac02a9 Fix compiler warning in CompatUtility::GetServiceNotificationNotificationOptions.
Refs #5349
2013-12-17 07:52:35 +01:00
Gunnar Beutner 0b8b421323 Fix compiler warnings in ScheduledDowntime::FindNextSegment.
Refs #5349
2013-12-17 07:52:30 +01:00
Gunnar Beutner 65b41c51ff Fix compiler warnings in ThreadPool::ThreadPool.
Refs #5349
2013-12-17 07:52:26 +01:00
Gunnar Beutner 79e960f7cb Fix a log message.
Refs #5342
2013-12-16 17:23:34 +01:00
Gunnar Beutner 162cee5c40 Remove the ConsoleLogger class and keep the default console log enabled until we daemonize.
Refs #5342
2013-12-16 17:23:23 +01:00
Michael Friedrich 07e4bc03bc Fix perfdata double value type formatting.
Fixes #5277
2013-12-16 16:57:30 +01:00
Michael Friedrich a840dc8694 Apply UOM base to warn/crit/min/max to perfdata values.
Fixes #5280
2013-12-16 16:36:54 +01:00
Michael Friedrich f4c132ca5b Move command argument logging into the unix process class.
Refs #5225
2013-12-16 16:22:22 +01:00
Gunnar Beutner 2f58071b6f Fix race condition in Logger::GetLoggers.
Fixes #5341
2013-12-16 09:53:50 +01:00
Michael Friedrich 9452bc7095 Only print config validation for existing objects.
Refs #5298
2013-12-16 09:39:14 +01:00
Gunnar Beutner 807d0a47e6 Fix spelling mistake in ConfigItem::ActivateItems.
Fixes #5334
2013-12-15 18:47:11 +01:00
Gunnar Beutner ff5a35b7db Fix race condition in TimePeriod::Start.
Refs #5337
2013-12-15 18:46:14 +01:00
Gunnar Beutner f08bca220d Fix race condition in icinga::Log.
Refs #5337
2013-12-15 18:46:09 +01:00
Gunnar Beutner 0af81f2da2 Fix race conditions in the config compiler.
Fixes #5335
2013-12-15 11:54:22 +01:00
Gunnar Beutner 4563bb355f Fix another race condition in DynamicObject::Start.
Fixes #5330
2013-12-14 07:36:49 +01:00
Michael Friedrich 5f54406057 Log commands and their arguments.
Fixes #5225
2013-12-13 17:37:00 +01:00
Michael Friedrich 2ae988f457 Windows build fix. 2013-12-13 17:09:47 +01:00
Michael Friedrich c66878fa45 Add config validation stats.
Fixes #5298
2013-12-13 16:53:40 +01:00
Gunnar Beutner 7fbdf1d633 Fix crash in icinga::Log.
Fixes #5330
2013-12-13 15:13:20 +01:00
Gunnar Beutner 6f92a62953 Implement latency statistics for the "icinga" check.
Fixes #5325
2013-12-13 15:09:17 +01:00
Gunnar Beutner e7184225f3 Improve performance for icinga::Deserialize.
Refs #5327
2013-12-13 14:08:11 +01:00
Gunnar Beutner f8d7f7799e Improve WorkQueue performance
Refs #5327
2013-12-13 14:08:06 +01:00
Gunnar Beutner b4f2f06b88 Implement ParallelWorkQueue class.
Refs #5327
2013-12-13 14:08:02 +01:00
Gunnar Beutner b5792a0b81 Avoid using ConfigItem::GetObject when possible.
Refs #5327
2013-12-13 14:07:57 +01:00
Gunnar Beutner 37179cdf32 Improve config compiler performance.
Refs #5327
2013-12-13 14:07:37 +01:00
Michael Friedrich 66765311c3 Refactor CompatUtility::* for DB IDO, Livestatus, StatusData.
Fixes #5241
2013-12-13 09:38:22 +01:00
Gunnar Beutner 98733fc105 Add timestamp to crash dumps.
Fixes #5315
2013-12-12 14:38:34 +01:00
Johannes Meyer 9229aa4948 Merge branch 'feature/Array-insert-functionality' into next
resolves #5320
2013-12-12 13:53:27 +01:00
Michael Friedrich e6c6a7dc52 Use exclamation mark for auto-generated config item names.
Fixes #5318
2013-12-12 11:50:08 +01:00
Gunnar Beutner 7a107b7dbd Improve compatibility with C++11.
Fixes #5307
2013-12-11 16:40:55 +01:00
Johannes Meyer e50dd8c1cc Fix indentation in lib/icinga/externalcommandprocessor.cpp 2013-12-11 16:00:09 +01:00
Johannes Meyer 66845d05f8 Fix crash when a command is executed that affects check services
fixes #5297
2013-12-11 12:43:18 +01:00
Gunnar Beutner af6df9f268 Improve compatibility with Windows.
Fixes #5287
2013-12-09 13:46:53 +01:00
Michael Friedrich 085fca90ad Fix missing comment_data column in downtime tables.
Fixes #5282
2013-12-09 13:30:13 +01:00
Gunnar Beutner 3d7c103035 Fix deadlock in ServiceDbConnect::Add{Comments,Downtimes}.
Fixes #5286
2013-12-09 13:22:50 +01:00
Gunnar Beutner ab2e1e99e2 ScriptVariableRegistry::GetInstance should not be defined inline.
Fixes #5284
2013-12-09 12:26:25 +01:00
Gunnar Beutner 5e9ce84c17 Fix duplicate IDs in queries for comments/downtimes.
Fixes #5283
2013-12-09 12:22:54 +01:00
Gunnar Beutner 203cf73bf7 Improve error messages for the check result reader.
Fixes #5275
2013-12-09 09:52:09 +01:00
Gunnar Beutner 3b99dc1e84 Fix incorrect value for the triggered_by_id column.
Fixes #5279
2013-12-09 09:22:04 +01:00
Gunnar Beutner 41ded2858c Implement scheduled downtimes.
Fixes #3584
2013-12-06 13:45:18 +01:00
Gunnar Beutner e2941dbca8 Make sure that TimePeriod segments are being merged properly.
Refs #5268
2013-12-05 12:30:02 +01:00
Michael Friedrich fa14b39719 DB IDO: Fix reconnect config/status inserts.
Fixes #5266
2013-12-05 12:12:57 +01:00
Gunnar Beutner 6714796ecd Set rlimits in the Application class (rather than in the init script).
Fixes #5260
2013-12-05 11:11:03 +01:00
Gunnar Beutner 2553287818 Merge branch 'feature/constants-4946' into next
Fixes #4946
2013-12-04 12:14:16 +01:00
Gunnar Beutner 7482548966 Fix: display_name property doesn't work for hosts.
Fixes #5258
2013-12-04 12:07:57 +01:00
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
Gunnar Beutner e5b3a59aa3 Set thread names for the BufferedStream thread procs. 2013-10-18 11:46:19 +02:00
Gunnar Beutner 9506b6710e Implement TOTALHOSTSERVICES, TOTALHOSTSERVICESOK, TOTALHOSTSERVICESWARNING, TOTALHOSTSERVICESUNKNOWN and TOTALHOSTSERVICESCRITICAL macros. 2013-10-18 11:40:46 +02:00
Gunnar Beutner 0be741aca4 Build fix. 2013-10-18 11:30:55 +02:00
Gunnar Beutner cbf82e1cb8 Implement HOSTDURATIONSEC and SERVICEDURATIONSEC macros. 2013-10-18 11:29:49 +02:00
Gunnar Beutner 89d313008d Fix: GraphiteWriter: reconnect on broken socket.
Fixes #4883
2013-10-18 09:11:21 +02:00
Gunnar Beutner c824fc4f9f Fix error message. 2013-10-18 08:48:15 +02:00
Gunnar Beutner 917f288a95 Clean up socket code. 2013-10-18 08:26:48 +02:00
Michael Friedrich dd1ec43cd0 Documentation: Add Notifications, Escalations, Filters, Delay. 2013-10-18 00:11:35 +02:00
Gunnar Beutner c4941bb3c5 Close all file descriptors before restarting.
Refs #4905
2013-10-17 18:24:35 +02:00
Gunnar Beutner 5647694c2a Build fix. 2013-10-17 15:52:26 +02:00
Gunnar Beutner 65f4176fa8 Fix deadlock in WorkQueue::Join(). 2013-10-17 15:49:53 +02:00
Gunnar Beutner 492aed030e Improve the error message for GetX509Certificate(). 2013-10-17 15:46:50 +02:00
Gunnar Beutner 05a81b84e1 Fix: Check_source in ClassicUI is N/A
Fixes #4893
2013-10-17 12:08:08 +02:00
Gunnar Beutner fa845775a2 Fix crashes when restarting Icinga. 2013-10-17 10:56:42 +02:00
Gunnar Beutner c570593b73 Remove unused #include. 2013-10-17 10:34:01 +02:00
Gunnar Beutner 5a724ba011 Revert "NullCheckTask should return StateOK."
This reverts commit 046ea13cc8.
2013-10-17 10:24:47 +02:00
Gunnar Beutner b4ab6c8253 Re-implement WorkQueue item limit. 2013-10-17 10:19:17 +02:00
Gunnar Beutner eed901304a Fix deadlock in WorkQueue::Enqueue(). 2013-10-17 09:14:06 +02:00
Gunnar Beutner 204f04f295 Fix Service::GetEnablePerfdata(). 2013-10-16 18:36:14 +02:00
Michael Friedrich 8686305848 Fix enable_perfdata. 2013-10-16 17:18:21 +02:00
Michael Friedrich 36c4cb0da8 db_ido: Fix modified_{host,service}_attributes columns. 2013-10-16 16:29:14 +02:00
Gunnar Beutner a30afad4bd Fix ExternalCommandProcessor::ChangeNormalHostCheckInterval. 2013-10-16 16:08:00 +02:00
Gunnar Beutner ac9981fbcd Implement event_handler_enabled modified attribute. 2013-10-16 15:20:14 +02:00
Gunnar Beutner 046ea13cc8 NullCheckTask should return StateOK. 2013-10-16 15:20:04 +02:00
Gunnar Beutner 816d0e8d73 Fix config validation.
Fixes #4888
2013-10-16 13:37:54 +02:00
Gunnar Beutner ed4231d3be Fix external commands. 2013-10-16 13:12:38 +02:00
Gunnar Beutner 3ba0616620 Fix Service::{Get,Set}ModifiedAttributes. 2013-10-16 13:08:55 +02:00
Gunnar Beutner 45eb84f730 Allow floating point numbers for CHANGE_*_CHECK_INTERVAL. 2013-10-16 13:08:51 +02:00
Gunnar Beutner 3596ee577b Implement modified attributes check_interval and retry_interval. 2013-10-16 13:02:21 +02:00
Gunnar Beutner 20fbce9c9c Build fix. 2013-10-16 12:10:31 +02:00
Gunnar Beutner 6f645ecfbf Clean up ExternalCommandProcessor method names. 2013-10-16 12:09:45 +02:00
Gunnar Beutner d07dc47b1b Implement CHANGE_HOST_MODATTR. 2013-10-16 12:08:58 +02:00
Gunnar Beutner 53ca2d3916 ido: Add modified_attributes. 2013-10-16 12:01:09 +02:00
Gunnar Beutner 177e1a9000 Implement modified attributes for enable_active_checks and enable_passive_checks. 2013-10-16 11:46:54 +02:00
Gunnar Beutner 33cc106a14 Implement GetEnablePerfdata/GetEnableEventHandlers. 2013-10-16 10:47:02 +02:00
Gunnar Beutner a03c58f27e MakeSSLContext: Check if keys match. 2013-10-15 21:24:55 +02:00
Gunnar Beutner f8c057d63a Windows build fix. 2013-10-15 20:29:09 +02:00