Michael Friedrich
5222f7d058
GelfWriter should write the host notification output
...
No idea why there was a hardcoded unreachable message inside.
2018-01-15 13:39:34 +01:00
Gunnar Beutner
21254fb610
Avoid accessing attributes for validators where not necessary
2018-01-11 08:20:16 +01:00
Gunnar Beutner
91c256261a
Apply clang-tidy fix 'modernize-use-default-member-init'
2018-01-04 12:24:58 +01:00
Gunnar Beutner
becfa85094
Apply clang-tidy fix 'modernize-use-emplace'
2018-01-04 12:24:57 +01:00
Gunnar Beutner
e3ad0be769
Apply clang-tidy fix 'modernize-use-auto'
2018-01-04 12:24:57 +01:00
Gunnar Beutner
d6062eefbf
Apply clang-tidy fix 'modernize-raw-string-literal'
2018-01-04 12:24:57 +01:00
Gunnar Beutner
621eed3f13
Apply clang-tidy fix 'modernize-pass-by-value'
2018-01-04 12:24:57 +01:00
Gunnar Beutner
9ca682496c
Apply clang-tidy fix 'modernize-use-override'
2018-01-04 12:24:57 +01:00
Gunnar Beutner
ac155d1dda
Apply clang-tidy fix 'modernize-redundant-void-arg'
2018-01-04 12:24:57 +01:00
Gunnar Beutner
efe99a3e5e
Add the final keyword to classes
2018-01-04 05:20:20 +00:00
Gunnar Beutner
75e2473616
Clean up source lists in the CMakeLists.txt files
2018-01-03 11:47:46 +01:00
Gunnar Beutner
90496b5456
Build libraries as static libraries
2018-01-02 23:29:48 +01:00
Michael Insel
158ae2188e
Change copyright header for 2018
2018-01-02 12:08:55 +01:00
Jean Flach
2636e6a77a
Whitespace fix
...
What does this change?
* Remove use of spaces for formatting
These could be found by using `grep -r -l -P '^\t+ +[^*]'
* Removal of training whitespaces
* A few lines longer than 120 chars
2017-12-20 14:53:52 +01:00
Gunnar Beutner
1ad83886ac
Replace a few more NULLs with nullptr
2017-12-14 15:37:20 +01:00
Gunnar Beutner
40f9431413
Fix performance issues for InfluxdbWriter
2017-12-12 10:39:55 +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
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
Gunnar Beutner
83f17b5bfa
Replace boost::assign::list_of with initializer lists
2017-11-30 18:09:38 +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
df8266631d
Replace boost::tuple with std::tuple
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
858873b940
Replace boost::bind/boost::function with std::bind/std::function
2017-11-27 15:15:11 +01:00
Gunnar Beutner
57e74372d3
Merge pull request #5675 from froehl/feature/influxdbwriter-perf-unit-5627
...
Add pdv unit to influxdbwriter if not empty + doc
2017-11-27 10:32:44 +01:00
Michael Friedrich
7c0a09cfb6
Rename ElasticWriter to ElasticsearchWriter
...
This better reflects its purpose as otherwise it would imply
that you need Elastic Stack for it. Graylog also reads from
Elasticsearch instances, this could serve as additional integration
here.
2017-11-09 15:33:10 +01:00
Fabian Röhl
82794474e6
Add pdv unit to influxdbwriter if not empty + doc
...
refs #5627
2017-10-13 14:54:00 +02:00
Michael Friedrich
b9cfd4d2e9
Fix unnecessary String() casts in InfluxdbWriter
...
fixes #5629
2017-09-29 16:33:08 +02:00
Jean Flach
4df1125114
Fix Windows build error
...
fixes #5584
2017-09-18 17:47:08 +02:00
Michael Friedrich
d801aaa611
ElasticWriter: Implement support for TLS connections (HTTP proxy)
...
This commit also enhances the log messages.
refs #5538
2017-09-12 11:36:28 +02:00
Michael Friedrich
7c264673d4
ElasticWriter: Add basic auth support for Elasticsearch behind an HTTP proxy
...
refs #5538
2017-09-11 17:00:33 +02:00
Michael Friedrich
0457117d8e
Drop obsolete code
...
refs #4054
2017-09-11 14:29:24 +02:00
Jean Flach
651379db6f
Add ElasticWriter
...
fixes #5538
2017-09-11 14:27:04 +02:00
Michael Friedrich
d075665d1b
Merge pull request #5486 from Icinga/feature/remove-deprecated-graphite-legacy-mode
...
Graphite: Remove deprecated legacy schema mode
2017-08-17 20:06:47 +02:00
Simon Murray
abc3652b00
Fix TLS Race Connecting to InfluxDB
...
Rather than leaving stale connections about we tried to poll for data coming in
from InfluxDB and timeout if it didn't repond in a timely manner. This introduced
a race where the timeout triggers, a context switch occurs where data is actually
available and the TlsStream spins trying to asynchronously notify that data is
available, but which never gets read. Not only does this use up 100% of a core,
but it also slowly starves the system of handler threads at which point metrics
stop being delivered.
This basically removes the poll and timeout, any TLS socket erros should be
detected by TCP keep-alives.
Fixes #5460 #5469
2017-08-14 16:20:49 +01:00
Michael Friedrich
eb5e299c4b
Graphite: Remove deprecated legacy schema mode
...
This commit includes some code cleanup too.
fixes #4992
2017-08-09 18:52:35 +02:00
Michael Friedrich
2a4359d7e8
Windows build fix for InfluxdbWriter
...
refs #5219
fixes #5334
2017-06-07 14:16:15 +02:00
Michael Friedrich
89ac5b2fff
GelfWriter: Add 'check_command' to CHECK RESULT/* NOTIFICATION/STATE CHANGE messages
...
This allows for much more easy filtering in Graylog web
similar to Graphite or InfluxDB and their template dashboards.
2017-06-06 20:23:26 +02:00
Michael Friedrich
41a400f552
Merge pull request #5330 from Icinga/feature/graphite-stats
...
GraphiteWriter: Add 'connected' to stats; fix reconnect exceptions
2017-06-06 20:13:33 +02:00
Michael Friedrich
f42b820007
GraphiteWriter: Add 'connected' to stats; fix reconnect exceptions
2017-06-06 19:50:37 +02:00
Michael Friedrich
f10815efa2
GelfWriter: Use async work queue and add feature metric stats
...
fixes #4532
2017-06-06 19:48:23 +02:00
Gunnar Beutner
1fd2695e02
Fix compiler warnings
...
refs #5287
2017-05-29 09:13:19 +02:00
Michael Friedrich
dab2522acc
InfluxDB: Optimize work queue event handling
...
refs #5219
2017-05-26 17:11:13 +02:00
Michael Friedrich
28395b32f0
GraphiteWriter: Use a workqueue for event processing
...
This also adds reconnect handling and exceptions.
refs #5132
refs #5133
refs #5280
2017-05-26 15:18:14 +02:00
Michael Friedrich
647d82094f
InfluxDB: Remove obsolete logger, now implemented in WorkQueue class
...
refs #5280
refs #5133
2017-05-24 17:01:46 +02:00
Michael Friedrich
d366a63510
Add API & Cluster stats to /v1/status & icinga check performance metrics
...
refs #5133
2017-05-24 16:21:05 +02:00
Michael Friedrich
52d986d02b
Revert "Add LogstashWriter feature"
...
This reverts commit f5a971f5b0
.
refs #4054
2017-05-23 12:05:01 +02:00
Michael Friedrich
4c7660190f
Revert "Review LogstashWriter feature implementation"
...
This reverts commit bd5ff814f2
.
refs #4054
2017-05-23 12:04:08 +02:00
Michael Friedrich
79dcb789c2
Move PerfdataValue() class into base library
...
This is required for libremote and ApiListener stats in #5133
2017-05-15 16:32:29 +02:00
Michael Friedrich
2338db5f6a
Fix performance data processing in GelfWriter feature
...
Includes fixes for possible crashes on empty check results.
fixes #4666
2017-05-15 13:46:43 +02:00
Simon Murray
fc2c2d9a29
Verbose InfluxDB Error Logging
...
On a non 204 response we parse the HTTP response until complete e.g. do the headers
and body, not just the header. A new interface is added to the response to allow us
to determine the body size so that it may be read out and buffered. The body is
parsed and any error message printed out. In the event that the parsing fails the
raw body is dumped out; better than nothing!
fixes #4411
Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2017-05-11 12:13:41 +02:00