Gunnar Beutner
78705e74f3
Open the command pipe with O_RDWR
...
fixes #11807
2016-05-18 15:52:29 +02:00
Michael Friedrich
3c852311e1
Fix possible crash in Add{Comment,Downtime}
...
refs #11112
2016-05-11 16:12:09 +02:00
Michael Friedrich
a529725a92
Fix overloaded command pipe errors
...
fixes #11390
2016-05-11 11:04:28 +02:00
Michael Friedrich
ba82d2eb20
Move CalculateExecutionTime and CalculateLatency into the CheckResult class
...
fixes #11751
2016-05-10 12:16:49 +02:00
Michael Friedrich
23ab6cf78b
Fix: Expired downtimes are not removed
...
fixes #11711
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 #11248
refs #11257
refs #11273
(the old issue)
refs #7287
2016-03-05 18:15:03 +01:00
Michael Friedrich
894aaaecb1
Ensure that config files are readable by the daemon
...
refs #11212
refs #11211
2016-02-24 14:24:08 +01:00
Michael Friedrich
47c5425137
Fix permissions for temporary files
...
fixes #11212
fixes #11211
2016-02-24 11:00:44 +01:00
Michael Friedrich
4cb5b97e52
Fix unique creation of temp files
...
fixes #10948
2016-02-23 12:30:59 +01:00
Michael Friedrich
2a11b27972
Properly set the next check time for active and passive checks
...
fixes #7287
refs #11019
2016-01-22 18:40:14 +01:00
Michael Friedrich
4ce43b8d02
ExternalCommandListener: Fix crash when reading from socket
...
refs #10700
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 #10410
2015-11-10 11:41:21 +01:00
Gunnar Beutner
9ea51aa86e
Use non-blocking open() for the command pipe
...
fixes #10410
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 #10508
fixes #10509
2015-11-02 14:10:44 +01:00
Gunnar Beutner
050c520b2a
Convert Comment/Downtime to config objects
...
fixes #9777
2015-10-28 17:56:29 +01:00
Gunnar Beutner
7c4fa22715
Fix support for host checks in CheckResultReader
...
fixes #10348
2015-10-13 08:56:12 +02:00
Gunnar Beutner
d59054feee
Add missing Start call for base class in CheckResultReader::Start
...
fixes #10349
2015-10-13 08:38:12 +02:00
Michael Friedrich
1813c0932c
Remove dead code from old modified attributes
...
refs #9851
2015-09-29 14:24:39 +02:00
Jean-Marcel Flach
4ef9761fee
Implement status api handler
...
Global statistics, features, etc.
fixes #10116
2015-09-23 16:59:07 +02:00
Gunnar Beutner
3bca951b81
Add missing handler for OnActiveChanged
...
refs #9098
2015-09-22 12:01:34 +02:00
Gunnar Beutner
c5fe42e0b0
Update objects.cache when config is changed
...
fixes #9098
2015-09-22 11:56:27 +02:00
Gunnar Beutner
6fa58a520c
Implement config object sync
...
Adds object version.
refs #9927
2015-09-17 14:20:43 +02:00
Michael Friedrich
50cd694142
Fix wrong calculation for host compat state UNREACHABLE
...
fixes #10058
2015-09-04 13:24:41 +02:00
Gunnar Beutner
f45f6ccd82
Implement support for tracking dependencies between config objects
...
refs #9096
2015-08-25 13:54:05 +02:00
Gunnar Beutner
d118b71a2a
Fix compiler warnings
...
fixes #9929
2015-08-18 07:46:04 +02:00
Gunnar Beutner
071d2f18fb
Rename DynamicObject/DynamicType to ConfigObject/ConfigType
...
fixes #9914
2015-08-15 20:40:41 +02:00
Michael Friedrich
d7970f5bb1
Implement modified attributes v2
...
refs #9081
refs #9093
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 #9328
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 #9324
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 #9222
2015-05-15 15:59:44 +02:00
Gunnar Beutner
72a7b08480
Move implementation code from thpp files into separate files
...
fixes #8890
2015-03-28 11:08:12 +01:00
Gunnar Beutner
ec7224e3ed
Generate C++ code for type validators
...
fixes #7709
fixes #8867
2015-03-27 07:59:27 +01:00
Gunnar Beutner
29ac204449
Fix valgrind warning in ExternalCommandListener::CommandPipeThread
...
fixes #8536
2015-02-25 14:05:57 +01:00
Michael Friedrich
ea2ac81003
Remove name and return value for stats functions
...
fixes #6171
2015-02-07 22:36:17 +01:00
Michael Friedrich
bb2338631f
Fix last_hard_state missing in StatusDataWriter
...
fixes #8383
2015-02-07 19:37:35 +01:00
Gunnar Beutner
1bff5eb706
Fix missing files in the Windows package
...
fixes #8200
2015-02-02 10:36:58 +01:00
Gunnar Beutner
ce00081a57
Add enable_event_handlers attribute in status.dat
...
fixes #8321
2015-01-30 15:24:40 +01:00
Gunnar Beutner
a11cdbdc39
Replace spaces with tabs
2015-01-27 10:50:15 +01:00
Michael Friedrich
78bfd0204c
Update copyright year
2015-01-22 12:00:23 +01:00
Gunnar Beutner
363f23b1d8
Rename ScriptFunction to Function
...
fixes #8258
2015-01-21 08:48:38 +01:00
Tobias von der Krone
d5e406db85
Fix hardcoded host notifications_options value in compat statusdatawriter
...
Use the function from CompatUtility to retrieve the value.
fixes #8192
2015-01-19 12:58:57 +01:00
Gunnar Beutner
cb7f93dc19
Implement CMake options for some of the modules
...
fixes #7794
fixes #7795
2014-12-19 09:46:41 +01:00
Gunnar Beutner
9f18211ada
Remove obsolete code
...
refs #7709
2014-12-18 15:57:30 +01:00
Gunnar Beutner
873e294158
Refactor the WorkQueue class to make error reporting easier
...
refs #7709
2014-12-18 15:11:57 +01:00
Michael Friedrich
a0359799bd
Compat: Fix event_handler_enabled dump based on enable_event_handler attribute
...
fixes #8105
2014-12-18 11:22:15 +01:00
Gunnar Beutner
9eeb64a780
Update livestatus and statusdata to properly support booleans
...
fixes #8100
2014-12-17 08:54:28 +01:00
Gunnar Beutner
a2bd3a9576
Add missing Flush() call in the CompatLogger class
...
fixes #7511
2014-12-08 09:55:40 +01:00
Gunnar Beutner
2d53e000c8
Refactor the config validator so that it doesn't require serialized objects
...
refs #7701
2014-11-20 13:28:21 +01:00
Gunnar Beutner
478f03b49a
Replace boost::shared_ptr with boost::intrusive_ptr
...
refs #7622
2014-11-09 16:54:41 +01:00