Commit Graph

3122 Commits

Author SHA1 Message Date
Gunnar Beutner 389cb54f93 Implement support for running custom install/uninstall actions
refs #11449
2016-04-20 10:07:47 +02:00
Michael Friedrich 309ea899ed Fix: Overwriting global type variables causes crash in ConfigItem::Commit()
fixes #11484
2016-04-20 10:07:25 +02:00
Michael Friedrich 0cbedf495a IDO: Ensure that the notification insert id is passed to contactnotification inserts
We cannot add the notification insert id directly
to the following contactnotifications queries. Instead
we need to pass a DbValue reference which gets set after
the notification insert id is calculated.
The contactnotifications insert queries are fired as query
group calling CanExecuteQuery() and FieldToEscapedString().
If the notification id does not exist yet, the queries are
moved to the end of the queue.
Once the contactnotifications queries are fired the DbValue
reference is destroyed.

This patch also removes the old notification insert id cache
which was broken in many ways.

fixes #11387
2016-04-20 10:07:24 +02:00
Michael Friedrich 98eef33399 Fix socket exceptions while querying the API
fixes #11224
2016-04-20 10:07:24 +02:00
Michael Friedrich d0b5898c46 Fix: Downtimes/Comments not being synced to child zones
fixes #11227
2016-04-20 10:07:24 +02:00
Gunnar Beutner 0d2ae5ce92 Fix Utility::MkDirP on Windows
fixes #11455
2016-04-20 10:07:24 +02:00
Gunnar Beutner 94deb03e9c Another build fix for Win64
refs #11462
2016-04-20 10:07:23 +02:00
Gunnar Beutner 3c788f3899 Build fix for Win64
refs #11462
2016-04-20 10:07:23 +02:00
Gunnar Beutner 13c4bb06b8 Improve validation for arrays
fixes #11434
2016-04-20 10:07:23 +02:00
Michael Friedrich 521580f76e Ensure that the legacy_id attribute for comment/downtime objects is restored on restart
This has been changed when moving comments/downtimes to config objects
in 050c520b2a

It may cause trouble with DB IDO DELETE and UPDATE statements
depending on the old value.

refs #11382
2016-04-20 10:07:22 +02:00
Michael Friedrich 1b69a7ff70 DB IDO: Fix that downtime is not in effect after restart
fixes #10843
2016-04-20 10:07:22 +02:00
Gunnar Beutner b7ee26fa78 Don't use semi-colons in auto-generated config files
fixes #11438
2016-04-20 10:07:22 +02:00
Gunnar Beutner ba3eeafb5a Implement recursion limit for AST expressions which don't use a separate stack frame
fixes #11106
2016-04-20 10:07:22 +02:00
Gunnar Beutner 97f324ad3e Follow symlinks in Utility::GlobRecursive
fixes #11347
2016-04-20 10:07:22 +02:00
Michael Friedrich e076e91706 Only call UpdateNextCheck() for soft states
refs #11336
2016-04-20 10:00:09 +02:00
Michael Friedrich 8668eb65b5 Use UpdateNextCheck() for determining the retry_interval in ProcessCheckResult()
This patch also moves the next check updates for passive
check results into ProcessCheckResult(). That way the
next check status updates for DB IDO work in a sane way
again.

refs #11336
2016-04-20 10:00:08 +02:00
Michael Friedrich 122256bb91 Use retry_interval on first OK -> NOT-OK state change
Only valid for active check results. The API actions were
missing that marker similar to the external command processor.

The initial OK -> NOT-OK transition should use the retry_interval
but nothing else.

fixes #11336
2016-04-20 10:00:07 +02:00
Michael Friedrich 307498e71f DB IDO: Fix user notification type filters
fixes #10766
2016-03-15 14:53:25 +01:00
Gunnar Beutner 4c7b5f710f Fix crash in ScheduledDowntime::TimerProc
fixes #11352
2016-03-15 13:15:57 +01:00
Gunnar Beutner 14a5be30e0 Fix error handling for FeatureUtility::GetFeatures
fixes #11349
2016-03-15 13:15:01 +01:00
Gunnar Beutner 8b941a8db5 Attempt to fix race condition problem with epoll_ctl()
refs #11289
2016-03-15 13:14:35 +01:00
Michael Friedrich f386920e60 Refactor patch for host recovery notifications
refs #10225
2016-03-15 13:11:01 +01:00
Jean Flach 4cf33b74f2 Fix delete object handler returning incorrect status codes
Now a 200 OK only gets returned if all objects could be deleted

fixes #10770
2016-03-11 15:59:52 +01:00
Michael Friedrich ee7af887c8 Fix host recovery notifications for warning states
fixes  #10225
2016-03-11 15:58:13 +01:00
Julian Brost ca869719d0 Fix max number of args for DEL_DOWNTIME_BY_HOST_NAME
The RegisterCommand call for DEL_DOWNTIME_BY_HOST_NAME was missing the
max args parameter. This prevented the optional service name, start time
and comment arguments to be passed.

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>

fixes #11240
2016-03-11 15:57:35 +01:00
Michael Friedrich 5516427446 Fix: Common name in node wizard isn't case sensitive
fixes #11159
2016-03-11 15:57:10 +01:00
Michael Friedrich 7ad7e28d7a Fix: Volatile transitions from HARD NOT-OK->NOT-OK do not trigger notifications
fixes #11320
2016-03-11 15:56:43 +01:00
Michael Friedrich f99feab08c Revert "Fix check scheduling w/ retry_interval"
This reverts commit a51e647cc7.

This patch causes trouble with check results received
1) passively 2) throughout the cluster. A proper patch
for setting the retry_interval on NOT-OK state changes
is required.

refs #11248
refs #11257
refs #11273

(the old issue)
refs #7287
2016-03-11 15:55:14 +01:00
Michael Friedrich 8344f749cd 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-11 15:55:03 +01:00
Michael Friedrich baecdc3210 Fix: MkDirP supports '/' and '\' on Windows
fixes #10231
2016-03-11 15:51:08 +01:00
Michael Friedrich 9e833d7563 Fix MkDirP() on Windows
fixes #10231
2016-03-11 15:50:57 +01:00
Michael Friedrich 3979ec9b15 Fix wrong log message in 'node setup' cli command
fixes #11209
2016-03-11 15:48:18 +01:00
Sebastian Chrostek f5f0f7bd6e Fix problem notifications while flapping is active
fixes #9969
fixes #9642
2016-03-11 15:24:02 +01:00
Michael Friedrich e4b99ca87e Ensure that config files are readable by the daemon
refs #11212
refs #11211
2016-02-24 14:25:09 +01:00
Michael Friedrich a79ea88fff Fix permissions for temporary files
fixes #11212
fixes #11211
2016-02-24 11:27:22 +01:00
Michael Friedrich a837198bbc Fix unique creation of temp files
fixes #10948
2016-02-23 12:34:38 +01:00
Gunnar Beutner a39fc993e6 Build fix 2016-02-23 10:56:12 +01:00
Jean Flach debdaceb44 Fix another compiler warning
fixes #10956
2016-02-23 10:54:34 +01:00
Gunnar Beutner 8798c34283 Fix compiler warning
fixes #10956
2016-02-23 10:54:34 +01:00
Jean Flach 9376a37806 Remove unused variable 2016-02-23 10:51:54 +01:00
Gunnar Beutner b8195beada Increase grace period for agent-based checks
refs #11020
2016-02-23 10:51:12 +01:00
Gunnar Beutner 6e11836791 Add missing comment
refs #10988
2016-02-23 10:50:42 +01:00
Michael Friedrich d1cc56bbaa Only set SSL_OP_NO_COMPRESSION if supported
OpenSSL 0.9.8 does not support this flag.

fixes #10988
2016-02-23 10:50:29 +01:00
Tobias von der Krone ae50334995 Support TLSv1.1 and TLSv1.2 for the cluster transport encryption
From https://wiki.openssl.org/index.php/SSL/TLS_Client:
SSLv23_method specifies the protocols used and behavior of the handshake.
The method essentially means SSLv2 or above, and includes the TLS protocols.
The protocols are further tuned through SSL/TLS options. By using
SSLv23_method (and removing the SSL protocols with SSL_OP_NO_SSLv2 and
SSL_OP_NO_SSLv3), then you will use TLS v1.0 and above, including TLS v1.2.
You will also use a TLS handshake in the TLS Record.

If you use TLSv1_method, then you will only use TLS v1.0.

fixes #10988
2016-02-23 10:50:23 +01:00
Gunnar Beutner 87817bfc8a Implement support for epoll
refs #11014
2016-02-23 10:49:24 +01:00
Jean Flach 3b70bab4d7 Use ConfigWriter class in repositoryutility.cpp
refs #10989
2016-02-23 10:46:20 +01:00
Jean Flach 2052edff9f Refactor String-Escape in repositoryutility
fixes #10989
2016-02-23 10:46:20 +01:00
Michael Friedrich abce99daff Fix: Escaped sequences not properly generated with 'node update-config'
fixes #10989
2016-02-23 10:46:20 +01:00
Jean Flach fd85379f5c Rephrase some log messages
refs #11122
2016-02-23 10:46:19 +01:00
Jean Flach 09b7f39e86 Fix client not closing connections
fixes #11122
2016-02-23 10:46:19 +01:00