9106 Commits

Author SHA1 Message Date
Michael Friedrich
9b0cc125dd Update docs for Elasticsearch 5.x and 6.x support
refs #5840
2017-12-07 17:08:06 +01:00
Michael Friedrich
806eb0d2d2 Fix newline terminator for bulk requests in ElasticsearchWriter
This enables compatibility with 6.x.

This commit also fixes an incorrect HTTP response parsing
which could lead into false positives.

Analysis and fix in https://github.com/Icinga/icinga2/issues/5795#issuecomment-349920587

fixes #5795

refs #5840
2017-12-07 17:07:44 +01:00
Michael Friedrich
13895b43a2
Merge pull request #5840 from Icinga/fix/elasticsearch-writer-6
Fix newline terminator for bulk requests in ElasticsearchWriter
2017-12-07 17:07:01 +01:00
Michael Friedrich
14953dff42 Update docs for Elasticsearch 5.x and 6.x support 2017-12-07 13:32:24 +01:00
Sven Nierlein
9ba5f30afa livestatus: custom variables return empty arrays instead of strings
livestatus queries for custom variables should return an empty list, ex: []
instead of an empty string if there are no variables.

Signed-off-by: Sven Nierlein <sven@nierlein.de>

refs #5746
2017-12-07 13:29:11 +01:00
Paolo Schiro
3a7c54c3d1 add a bogus zero reply in livestatus if aggregate filter does not match, fix I#5626
refs #5716
2017-12-07 13:28:16 +01:00
Michael Friedrich
f8e102c15a Fix newline terminator for bulk requests in ElasticsearchWriter
This enables compatibility with 6.x.

This commit also fixes an incorrect HTTP response parsing
which could lead into false positives.

Analysis and fix in https://github.com/Icinga/icinga2/issues/5795#issuecomment-349920587

fixes #5795
2017-12-07 11:11:03 +01:00
Dirk Goetz
89f905acef fixes postgres schema upgrade path
refs #5835
2017-12-06 09:58:51 +01:00
Michael Friedrich
d91e5cd054
Merge pull request #5835 from dgoetz/fix/postgres-update-doc
Fixes postgres schema upgrade path
2017-12-06 09:58:18 +01:00
Dirk Goetz
a3fc5157db fixes postgres schema upgrade path 2017-12-06 09:00:07 +01:00
Strix
83d6cdb27b fix formatting error 2017-12-05 11:36:33 +01:00
Michael Friedrich
ea1ee77e26
Merge pull request #5833 from MrStrix/patch-1
fix formatting error
2017-12-05 11:34:14 +01:00
Strix
c4a51f8327
fix formatting error 2017-12-05 11:31:34 +01:00
Michael Friedrich
da056b052b
Merge pull request #5827 from Icinga/feature/replace-statsfunction-with-function
Replace StatsFunction with Function
2017-11-30 21:28:32 +01:00
Michael Friedrich
a238613fdc
Merge pull request #5825 from Icinga/feature/boost-assign
Replace boost::assign::list_of with initializer lists
2017-11-30 21:20:46 +01:00
Michael Friedrich
7f28a1a78a
Merge pull request #5824 from Icinga/feature/cxx11-features
Replace a few Boost features with equivalent C++11 features
2017-11-30 20:39:21 +01:00
Gunnar Beutner
a344f11e6c Replace StatsFunction with Function 2017-11-30 19:02:25 +01:00
Gunnar Beutner
83f17b5bfa Replace boost::assign::list_of with initializer lists 2017-11-30 18:09:38 +01:00
Gunnar Beutner
325e4a2fb9 Use nullptr instead of <Type>::Ptr() 2017-11-30 17:47:09 +01:00
Gunnar Beutner
3c60fbf75d Use std::vector::emplace_back instead of std::vector::push_back 2017-11-30 17:47:09 +01:00
Gunnar Beutner
59fca5d5ac Use std::vector instead of std::set where appropriate 2017-11-30 17:47:09 +01:00
Gunnar Beutner
2e87c280ed Use initializer lists instead of std::vector::push_back 2017-11-30 17:47:09 +01:00
Gunnar Beutner
ebc11d41a5 Tidy up INITIALIZE_ONCE use in console.cpp a bit 2017-11-30 17:47:09 +01:00
Gunnar Beutner
63fd6e3905 Get rid of INITIALIZE_ONCE for the ExternalCommandProcessor 2017-11-30 17:47:09 +01:00
Gunnar Beutner
9ce950b0f1 Replace boost::ref/boost::cref with std::ref/std::cref 2017-11-30 17:47:09 +01:00
Gunnar Beutner
df8266631d Replace boost::tuple with std::tuple 2017-11-30 17:41:02 +01:00
Gunnar Beutner
160ab21e59 Replace CheckResult::StaticInitialize with a lambda function 2017-11-30 17:41:02 +01:00
Gunnar Beutner
f7b4e81ffd Make a few functions static 2017-11-30 17:41:02 +01:00
Gunnar Beutner
6739023678 Dynamically create and destroy the timer thread 2017-11-30 17:41:02 +01:00
Gunnar Beutner
6d09efc907 Use std::shared_ptr instead of boost::shared_ptr 2017-11-30 17:41:00 +01:00
Gunnar Beutner
245feca0e7 Move the Timer::Holder class to timer.cpp 2017-11-30 17:39:22 +01:00
Gunnar Beutner
300d424459 Use std::promise instead of boost::promise 2017-11-30 17:39:22 +01:00
Gunnar Beutner
7d7eaa8dd3 Replace boost::thread with std::thread 2017-11-30 17:39:20 +01:00
Gunnar Beutner
c6e36723d5
Merge pull request #5819 from Icinga/feature/avoid-func-call-allocations
Avoid unnecessary allocations in the FunctionCallExpression class
2017-11-29 14:24:46 +01:00
Gunnar Beutner
b675430b68
Merge pull request #5816 from Icinga/feature/cxx11-wrapfunction
Re-implement WrapFunction() using C++11 features
2017-11-29 14:17:11 +01:00
Gunnar Beutner
db6a1fcdb7 Avoid unnecessary allocations in the FunctionCallExpression class 2017-11-29 14:11:09 +01:00
Gunnar Beutner
d5961bb76c Re-implement WrapFunction() using C++11 features 2017-11-29 11:53:45 +01:00
Gunnar Beutner
f3c825cb86
Merge pull request #5803 from Icinga/feature/cxx11-std-bind
Replace boost::bind/boost::function with std::bind/std::function
2017-11-29 08:28:44 +01:00
Michael Friedrich
1f52e391d4
Merge pull request #5733 from Icinga/feature/perfdataname
Make --perf-syntax also change short message
2017-11-28 13:47:04 +01:00
Michael Friedrich
f267135711 Update NodeName/ZoneName constants with 'api setup'
This commit also moves the constants.conf backup logic
into NodeUtility::UpdateConstant() where it belongs.

Logging has been slightly adopted too.

fixes #5763
2017-11-28 13:38:53 +01:00
Michael Friedrich
adff48abf9
Merge pull request #5809 from Icinga/feature/required-openssl-version
Raise required OpenSSL version to 1.0.1
2017-11-28 11:39:17 +01:00
Michael Friedrich
f4524c2aba Fix formatting in value types docs
refs #5783
2017-11-28 11:37:25 +01:00
Michael Friedrich
2b7b2ebd29
Merge pull request #5783 from Icinga/fix/docs-formatting
Fix formatting in value types docs
2017-11-28 11:37:00 +01:00
Michael Friedrich
5b231147fe Silence UpdateRepository message errors
Mixed setups with 2.8 and 2.7 will log this error every time
a new message is received. While this is truly an error,
it just fills the log to infinity. Should be used for debug only.

fixes #5776

refs #5804
2017-11-28 11:27:39 +01:00
Michael Friedrich
8e65aa0677
Merge pull request #5804 from Icinga/fix/update-repository-message-error
Silence UpdateRepository message errors
2017-11-28 11:27:12 +01:00
Michael Friedrich
de7a90dba7 ITL: Drop ssl_sni default setting
That's not supported by all plugin suites out there, and as such
should not be the default value. The user must set it explicitly.

fixes #5775

refs #5785
2017-11-28 11:15:57 +01:00
Gunnar Beutner
a18fbcb27a Fix missing variable name which can lead to segfaults
refs #5808
refs #5807

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2017-11-28 11:14:32 +01:00
Michael Friedrich
bd447c2028
Merge pull request #5808 from Icinga/fix/missing-variable-name
Fix missing variable name which can lead to segfaults
2017-11-28 11:05:25 +01:00
Michael Friedrich
b38805e7cc Raise required OpenSSL version to 1.0.1
refs #5555
2017-11-27 17:29:00 +01:00
Gunnar Beutner
1006ea0433 Fix missing variable name which can lead to segfaults 2017-11-27 16:06:59 +01:00