Gunnar Beutner
0629ea0a98
Fix incorrect memory access
2017-12-14 15:05:04 +01:00
Gunnar Beutner
1bf12c9685
Merge pull request #5857 from Icinga/fix/compiler-warnings
...
Fix compiler warnings
2017-12-14 13:49:25 +01:00
Gunnar Beutner
3c5af89d5f
Fix compiler warnings
2017-12-14 09:15:37 +01:00
Gunnar Beutner
ff0b6ba630
Fix build problems with Visual Studio 2017
2017-12-14 08:55:36 +01:00
Gunnar Beutner
42744fde5b
Remove extraneous whitespace
2017-12-14 08:50:09 +01:00
Gunnar Beutner
96e214221d
Remove unused variables
2017-12-14 08:50:09 +01:00
Gunnar Beutner
75def4b074
Merge pull request #5753 from Icinga/fix/ringbuffer-does-not-get-updated-if-nothing-is-written-5750
...
Fix that RingBuffer does not get updated and add metrics about communication between endpoints
2017-12-12 11:32:18 +01:00
Noah Hilverling
5519626f84
Add metrics about communication between endpoints
...
refs #5509
2017-12-11 10:20:25 +01:00
Michael Friedrich
a72a7b7c89
Merge pull request #5760 from Icinga/fix/http-client-bugs
...
Fix incorrect socket handling for the HTTP client
2017-12-08 12:51:50 +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
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
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
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
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
7d7eaa8dd3
Replace boost::thread with std::thread
2017-11-30 17:39:20 +01:00
Gunnar Beutner
d5961bb76c
Re-implement WrapFunction() using C++11 features
2017-11-29 11:53:45 +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
6b3931973e
Merge pull request #5555 from Icinga/feature/ecc-certs
...
Implement support for ECC certificates
2017-11-27 15:11:04 +01:00
Gunnar Beutner
1b4206e5b1
Merge pull request #5725 from Icinga/feature/proper-uuids
...
Use real UUIDs for Utility::NewUniqueID
2017-11-27 10:18:52 +01:00
Gunnar Beutner
52692a008e
Fix incorrect socket handling for the HTTP client
2017-11-15 09:53:38 +01:00
Noah Hilverling
c10f0a639b
RingBuffer: Add CalculateRate()
...
refs #5750
2017-11-14 11:06:56 +01:00
Noah Hilverling
054faa54d5
Return bytes sent/written in SendMessage() and WriteStringToStream()
...
refs #5509
2017-11-14 08:18:23 +01:00
Noah Hilverling
2acaccd028
Fix that RingBuffer does not get updated if nothing is written
...
refs #5750
2017-11-13 16:17:59 +01:00
Lee Clemens
9fdfa5ee10
Handle mis-detection with clang on RHEL/CentOS 7
...
C++11 features available: BOOST_NO_CXX11_HDR_TUPLE
refs #5257
2017-11-08 08:34:45 +01:00
Gunnar Beutner
6f8b62333f
Use real UUIDs for Utility::NewUniqueID
2017-11-07 13:53:04 +01:00
Noah Hilverling
3e8f78e2cc
Process: Fix fork error handling
...
refs #5617
2017-10-23 11:01:42 +02:00
Noah Hilverling
7930ae5094
Process: Remove log message from child process
2017-10-23 11:01:16 +02:00
Gunnar Beutner
f2d437e96c
Implement support for migrating certificates to /var/lib/icinga2/certs
...
This commit includes documentation too.
Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2017-10-20 14:06:02 +02:00
Michael Friedrich
9d68ae9f1f
Merge pull request #5602 from Icinga/fix/config-validation-fails-on-windows-with-unprivileged-account-5515
...
Add windows process elevation and log message if user does not have privileges to read/write files
2017-10-13 16:31:12 +02:00
Michael Friedrich
0b1ce7111c
Merge pull request #5231 from Al2Klimov/bugfix/failure-to-kill-check-command-after-exceeding-timeout-is-not-reported-4981
...
Report failure to kill check command after exceeding timeout
2017-10-13 13:57:26 +02:00
Michael Friedrich
9a04a99400
Merge pull request #5554 from Icinga/feature/cn-check-for-san
...
Add subjectAltName extension for all non-CA certificates
2017-10-10 17:50:01 +02:00
Michael Friedrich
c0a3de64fb
Fix match(), regex(), cidr_match() behaviour with MatchAll and empty arrays
...
fixes #5634
2017-09-29 14:45:15 +02:00
Noah Hilverling
aab50f669c
Add process elevation & log message if user does not have enough privileges
...
refs #5515
2017-09-22 10:25:17 +02:00
Noah Hilverling
ea24af6590
SyslogLogger: Implement option to set syslog facility
...
fixes #3964
2017-09-20 14:09:51 +02:00
Gunnar Beutner
5179faceab
Implement new script functions: path_exists, glob and glob_recursive
2017-09-18 13:59:03 +02:00
Gunnar Beutner
774936bfe8
Implement support for pki::UpdateCertificate messages
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
0ec07bce51
Implement support for updating client certificates
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
abdd4b307b
Implement the 'ca list' and 'ca sign' CLI commands
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
510e2d622a
Implement support for ticket-less certificate requests
...
refs #5450
2017-09-12 12:52:49 +02:00
Michael Friedrich
344b047ea0
Move Base64 class into libbase
...
refs #5538
2017-09-12 12:52:49 +02:00
Gunnar Beutner
10691db5b1
Implement support for ECC certificates
2017-09-06 12:29:30 +02:00
Gunnar Beutner
3385122bc3
Add subjectAltName extension for all non-CA certificates
2017-09-06 12:25:36 +02:00
Michael Friedrich
732a5849d5
Change FIFO::Optimize() frequency for large messages
...
refs #5513
2017-08-21 11:24:39 +02:00
Noah Hilverling
5b9337e130
Process: Fix JSON parsing error on process helper crash
2017-08-14 08:27:04 +02:00
Gunnar Beutner
c8b4fee843
Make rlimits configurable by adding three variables: RLimitFiles, RLimitProcesses and RLimitStack
...
refs #5367
2017-06-23 12:42:12 +02:00
Michael Friedrich
6036ec20f5
Build fix for Debian Wheezy
...
fixes #5350
2017-06-16 16:57:05 +02:00
Gunnar Beutner
f9feb41877
Implement support for handling exceptions in user scripts
2017-06-13 14:03:41 +02:00
Michael Friedrich
79c45ea811
Build fix for OpenSSL 0.9.8 and stack_st_X509_EXTENSION
2017-05-26 13:16:20 +02:00
Michael Friedrich
456cfdc636
Implement WorkQueue metric stats and periodic logging
...
refs #5133
2017-05-23 16:00:21 +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
Gunnar Beutner
fa874e659b
Build fix for I2_LEAK_DEBUG
2017-05-22 11:42:47 +02:00
Gunnar Beutner
7130e5e387
Merge pull request #5264 from Icinga/feature/array-match
...
Implement new array match functionality
fixes #5264
fixes #5263
2017-05-16 14:22:35 +02:00
Gunnar Beutner
958d3982c5
Add 'mode' argument for match, regex and cidr_match
2017-05-16 13:22:10 +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
Gunnar Beutner
dc9f129060
Implement the Array#any and Array#all protoype functions
2017-05-15 15:59:44 +02:00
Gunnar Beutner
1b77f4b336
Implement the Dictionary#values prototype function
2017-05-15 15:54:48 +02:00
Alexander A. Klimov
8bf3ab0285
Produce an unknown check result if we failed to kill the process
...
refs #4981
2017-05-12 15:25:22 +02:00
Gunnar Beutner
b366483466
Add subjectAltName X509 ext for certificate requests
2017-05-11 15:38:17 +02:00
Alexander A. Klimov
c45529b407
Report failure to kill check command after exceeding timeout
...
refs #4981
2017-05-05 17:31:14 +02:00
Gunnar Beutner
f9f3358d09
Make sure all objects are set to 'active' before calling the Start() method
...
fixes #5224
2017-05-04 10:37:34 +02:00
Jean Flach
7c70d51b27
Add a few extra log messages
...
fixes #5212
2017-05-02 10:54:06 +02:00
Andreas Scherbaum
775bee8fe1
Replace http:// links with https:// links where a secure website exists
...
Leave out tests and third party tools, and license strings
fixes #5151
Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2017-04-20 11:33:27 +02:00
Gunnar Beutner
0f81c357c0
Implement source_location attribute for the ConfigObject class
...
refs #5120
2017-04-19 15:30:11 +02:00
Michael Friedrich
e4ae789a7c
Set zone attribute to no_user_modify for API POST requests
...
fixes #5166
2017-04-12 09:25:28 +02:00
Gunnar Beutner
0c25d14d0c
Fix crash in SHA1
...
refs #4991
2017-03-29 10:17:03 +02:00
Michael Friedrich
0b466aabc0
Start working on checksum config dump
...
refs #4991
2017-03-29 10:17:03 +02:00
Gunnar Beutner
50310fb5bc
Add missing arguments
...
refs #5087
2017-03-28 13:24:21 +02:00
Gunnar Beutner
5d45c74be3
Improve function metadata by adding arguments
...
fixes #5087
2017-03-27 14:43:19 +02:00
Michael Friedrich
bd5ff814f2
Review LogstashWriter feature implementation
...
refs #4054
2017-03-20 14:30:03 +01:00
Kai Goller
f5a971f5b0
Add LogstashWriter feature
...
This adds the UdpSocket class.
refs #4054
2017-03-20 14:30:03 +01:00
Gunnar Beutner
645e260f9b
Make function names available in the API
...
fixes #5064
2017-03-15 11:18:08 +01:00
Sebastian Marsching
118d36f384
Fixed return code check in CRL loading
...
The code for loading CRLs was incorrectly assuming that OpenSSL's
X509_LOOKUP_load_file function returns zero on success, but actually it
returns one on success. This commit fixes this return code check so
that a CRL can be loaded.
fixes #5040
Signed-off-by: Gunnar Beutner <gunnar.beutner@icinga.com>
2017-02-28 14:08:24 +01:00
Gunnar Beutner
06c2a4088d
Ensure that only child processes for checks are reniced
...
fixes #4989
2017-02-21 11:31:07 +01:00
Edgar Fuß
1fc6d8c899
Fix for traditional glob(3) behaviour
...
fixes #4778
2017-02-09 09:08:48 +01:00
Edgar Fuß
7414df4ef8
Fix lsb_release/sw_vers errors on NetBSD
...
fixes #4779
2017-02-08 17:47:09 +01:00
Michael Friedrich
763fb64fff
Update issue tracker to GitHub
...
fixes #4923
2017-01-17 16:50:22 +01:00
Gunnar Beutner
060e20f5a3
Clean up the patch for the crash issue in the Process class
...
fixes #13655
2017-01-16 14:15:42 +01:00
Lucas Fairchild-Madar
9fa3f3b122
Fix crash when sending/receiving messages longer than 4 kB to/from the child process for the Process class
...
refs #13655
Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2017-01-16 14:15:39 +01:00
Gunnar Beutner
751ca67e0a
Ignore SIGPIPE earlier in the start-up process
...
fixes #13567
2017-01-12 10:50:43 +01:00
Michael Friedrich
b7caf0820d
Ensure that *.icinga.com is used everywhere
...
fixes #13897
fixes #13277
2017-01-10 17:19:12 +01:00
Michael Friedrich
fb8f4105ad
Block SIGPIPE signal for check processes
...
refs #13567
2016-12-15 11:47:07 +01:00
Gunnar Beutner
78fa197b9f
Properly unmask signals for child processes
...
fixes #13269
2016-11-22 13:53:58 +01:00
Gunnar Beutner
f48e99c710
Fix integer truncation in Convert::ToString
...
fixes #12995
2016-11-02 08:42:24 +01:00
Gunnar Beutner
c0bc156696
Don't mask all signals in the subprocess handler
...
fixes #12940
2016-10-24 08:42:40 +02:00
Jean Flach
069de6c121
Don't use InitializeSpawnHelper on Windows
...
refs #8900
2016-10-05 15:10:43 +02:00
Gunnar Beutner
a7b0cb5f7e
Ensure we don't leak file descriptors to child processes
...
fixes #8900
2016-10-04 14:08:48 +02:00
Gunnar Beutner
0df4b4edfb
Fix incorrect #ifdef
...
fixes #12749
2016-09-28 08:30:47 +02:00
Gunnar Beutner
5960753015
Build fix for Windows
...
fixes #12614
2016-09-04 16:53:24 +02:00
Gunnar Beutner
58cdce8d7c
Improve error handling for event filters
...
fixes #12621
2016-09-02 08:51:51 +02:00
Gunnar Beutner
b92a139a4c
Fix incorrect assignment in String::operator=
...
refs #12619
2016-09-02 08:14:46 +02:00
Gunnar Beutner
02442ff36f
Remove unused Value::GetPtr method
...
refs #12619
2016-09-01 15:26:25 +02:00