Commit Graph

69 Commits

Author SHA1 Message Date
Jean Flach a21ffd6fe4 Fix flapping
Re-implement flapping following the 'old way' of just observing the last
20 stage changes.

refs 
2017-10-24 15:54:05 +02:00
Michael Friedrich 35f6f60390 Docs: Fix invalid/redirected URLs
fixes 
2017-04-28 17:02:13 +02:00
Gunnar Beutner 39f1b4589a Improve handling for missing start_time and finish_time values
fixes 
2017-03-15 10:41:08 +01:00
Michael Friedrich f8fa4db454 Hide stack traces for warning log level in the ExternalCommandListener feature
fixes 
2017-02-08 16:11:58 +01:00
Michael Friedrich e5f5284838 Add logging for started/stopped features
fixes 
2017-02-08 15:40:27 +01:00
Michael Friedrich b7caf0820d Ensure that *.icinga.com is used everywhere
fixes 
fixes 
2017-01-10 17:19:12 +01:00
Gunnar Beutner 5058c5d75b Use 'auto' for iterator declarations
fixes 
2016-08-27 08:37:19 +02:00
Gunnar Beutner 30762e5330 Set versions for all internal libraries
fixes 
2016-08-25 17:56:18 +02:00
Gunnar Beutner 288413f046 Replace BOOST_FOREACH with range-based for loops
fixes 
2016-08-25 06:46:17 +02:00
Gunnar Beutner ae1ab5f865 Implement unit tests for state changes
fixes 
2016-08-24 19:45:52 +02:00
Gunnar Beutner fda032c0c4 Fix incorrect return values for some of the CompatUtility methods
fixes 
2016-08-14 17:06:50 +02:00
Gunnar Beutner 78705e74f3 Open the command pipe with O_RDWR
fixes 
2016-05-18 15:52:29 +02:00
Michael Friedrich 3c852311e1 Fix possible crash in Add{Comment,Downtime}
refs 
2016-05-11 16:12:09 +02:00
Michael Friedrich a529725a92 Fix overloaded command pipe errors
fixes 
2016-05-11 11:04:28 +02:00
Michael Friedrich ba82d2eb20 Move CalculateExecutionTime and CalculateLatency into the CheckResult class
fixes 
2016-05-10 12:16:49 +02:00
Michael Friedrich 23ab6cf78b Fix: Expired downtimes are not removed
fixes 
2016-05-02 15:32:46 +02:00
Michael Friedrich b8e3d61820 Revert "Properly set the next check time for active and passive checks"
This reverts commit 2a11b27972.

This patch does not properly work and breaks the check_interval setting
for passive checks. Requires a proper patch.

refs 
refs 
refs 

(the old issue)
refs 
2016-03-05 18:15:03 +01:00
Michael Friedrich 894aaaecb1 Ensure that config files are readable by the daemon
refs 
refs 
2016-02-24 14:24:08 +01:00
Michael Friedrich 47c5425137 Fix permissions for temporary files
fixes 
fixes 
2016-02-24 11:00:44 +01:00
Michael Friedrich 4cb5b97e52 Fix unique creation of temp files
fixes 
2016-02-23 12:30:59 +01:00
Michael Friedrich 2a11b27972 Properly set the next check time for active and passive checks
fixes 
refs 
2016-01-22 18:40:14 +01:00
Michael Friedrich 4ce43b8d02 ExternalCommandListener: Fix crash when reading from socket
refs 
2016-01-20 16:38:31 +01:00
Gunnar Beutner 599929b0f6 Update copyright headers for 2016 2016-01-12 08:29:59 +01:00
Gunnar Beutner 0a6505ce2d Use poll() for the command pipe fd
refs 
2015-11-10 11:41:21 +01:00
Gunnar Beutner 9ea51aa86e Use non-blocking open() for the command pipe
fixes 
2015-11-09 20:39:26 +01:00
Michael Friedrich 43976d3989 Add host.last_state_{up,down} and last_check attribute, hide *_raw attributes
fixes 
fixes 
2015-11-02 14:10:44 +01:00
Gunnar Beutner 050c520b2a Convert Comment/Downtime to config objects
fixes 
2015-10-28 17:56:29 +01:00
Gunnar Beutner 7c4fa22715 Fix support for host checks in CheckResultReader
fixes 
2015-10-13 08:56:12 +02:00
Gunnar Beutner d59054feee Add missing Start call for base class in CheckResultReader::Start
fixes 
2015-10-13 08:38:12 +02:00
Michael Friedrich 1813c0932c Remove dead code from old modified attributes
refs 
2015-09-29 14:24:39 +02:00
Jean-Marcel Flach 4ef9761fee Implement status api handler
Global statistics, features, etc.

fixes 
2015-09-23 16:59:07 +02:00
Gunnar Beutner 3bca951b81 Add missing handler for OnActiveChanged
refs 
2015-09-22 12:01:34 +02:00
Gunnar Beutner c5fe42e0b0 Update objects.cache when config is changed
fixes 
2015-09-22 11:56:27 +02:00
Gunnar Beutner 6fa58a520c Implement config object sync
Adds object version.

refs 
2015-09-17 14:20:43 +02:00
Michael Friedrich 50cd694142 Fix wrong calculation for host compat state UNREACHABLE
fixes 
2015-09-04 13:24:41 +02:00
Gunnar Beutner f45f6ccd82 Implement support for tracking dependencies between config objects
refs 
2015-08-25 13:54:05 +02:00
Gunnar Beutner d118b71a2a Fix compiler warnings
fixes 
2015-08-18 07:46:04 +02:00
Gunnar Beutner 071d2f18fb Rename DynamicObject/DynamicType to ConfigObject/ConfigType
fixes 
2015-08-15 20:40:41 +02:00
Michael Friedrich d7970f5bb1 Implement modified attributes v2
refs 
refs 
2015-08-15 20:07:10 +02:00
Markus Frosch 213300c5e7 Fix objects cache dump in compat for multiline vars
Multiline vars should be written as:
  _test test1\ntest2

And not
  _test test1
test2

fixes 

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-06-15 17:20:43 +02:00
Markus Frosch 47c8b5e347 Fix multi line handling for compat check results
When a multi line result is submitted via the command pipe, any multi line
output is escaped to a actual string '\n', because any external command only
can be a single line.

Example:
  [1432735140] PROCESS_SERVICE_CHECK_RESULT;host;service;3;Test1\nTest2|test=1

We need to unescape this values, just like we use to escape multi line output
for IDO and status.dat.

fixes 

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-06-15 17:19:28 +02:00
Michael Friedrich baa8fb424f Fix missing custom attributes in backends if name is equal to object attribute
fixes 
2015-05-15 15:59:44 +02:00
Gunnar Beutner 72a7b08480 Move implementation code from thpp files into separate files
fixes 
2015-03-28 11:08:12 +01:00
Gunnar Beutner ec7224e3ed Generate C++ code for type validators
fixes 
fixes 
2015-03-27 07:59:27 +01:00
Gunnar Beutner 29ac204449 Fix valgrind warning in ExternalCommandListener::CommandPipeThread
fixes 
2015-02-25 14:05:57 +01:00
Michael Friedrich ea2ac81003 Remove name and return value for stats functions
fixes 
2015-02-07 22:36:17 +01:00
Michael Friedrich bb2338631f Fix last_hard_state missing in StatusDataWriter
fixes 
2015-02-07 19:37:35 +01:00
Gunnar Beutner 1bff5eb706 Fix missing files in the Windows package
fixes 
2015-02-02 10:36:58 +01:00
Gunnar Beutner ce00081a57 Add enable_event_handlers attribute in status.dat
fixes 
2015-01-30 15:24:40 +01:00
Gunnar Beutner a11cdbdc39 Replace spaces with tabs 2015-01-27 10:50:15 +01:00