6763 Commits

Author SHA1 Message Date
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
Louis Sautier
45786e2b81 Re-add the 'su' directive to logrotate if supported
- try to detect a recent logrotate version which supports the 'su'
directive (added in 3.8.0, see
5be96cf182 (diff-e4eb329834da3d36278b1b7d943b3bc9R6))
- if logrotate can't be found, assume an old version is used
- allow the parameter to be forced by the user

fixes #9249

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
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
e314bc1ad5 Add /bigobj compiler option for Windows
refs #11462
2016-04-20 10:07:23 +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
eb53677e54 Update .mailmap for Assaf Flatto
refs #11439
2016-04-20 10:07:23 +02:00
Gunnar Beutner
9c6b070900 Update AUTHORS
refs #11439
2016-04-20 10:07:23 +02:00
Assaf Flatto
23d445578a Update Centos/Redhat/Fedora installation instructions
Old Docs gave wrong details on how to install Icinga 2.

fixes #11439

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
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 050c520b2a3df0477f2eec71ec2d874b6dd36aa5

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
Michael Friedrich
582575b693 Docs: Fix broken formatting in cluster manual SSL generation
fixes #11440
2016-04-20 10:07:22 +02:00
Gunnar Beutner
e8f1bce11b Update .mailmap
refs #11437
2016-04-20 10:07:22 +02:00
Thomas Widhalm
a0536c2fc8 Add silent installation, reference to NSClient++ and some extra information to the Windows Agent documentation
fixes #11437

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
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
f151e1ae9e Add --method parameter for check_{oracle,mysql,mssql}_health CheckCommands
fixes #11098
2016-04-20 10:07:21 +02:00
Michael Friedrich
c92ceff1ed Add --units, --rate and --rate-multiplier support for the snmpv3 check command
fixes #11194
2016-04-20 10:07:21 +02:00
Michael Friedrich
94d6cefea6 Docs: Remove the migration script chapter
fixes #11407
2016-04-20 10:07:18 +02:00
Michael Friedrich
20cb2e4414 Docs: Explain how to use functions for wildcard matches for arrays and/or dictionaries
... in assign where expressions

fixes #11402
2016-04-20 10:06:59 +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
62dfcc7dc8 Docs: Fix url for Icinga Web 2 installation docs
refs #11494
2016-04-11 10:38:45 +02:00
Michael Friedrich
c98c3f52f0 Docs: Remove the migration script chapter
fixes #11407
2016-04-11 10:38:40 +02:00
Michael Friedrich
24836a405c Docs: Explain how to use functions for wildcard matches for arrays and/or dictionaries
... in assign where expressions

fixes #11402
2016-04-11 10:38:34 +02:00
Gunnar Beutner
c035d1b888 Update .mailmap for Markus Frosch
fixes #11399
2016-04-11 10:38:29 +02:00
Gunnar Beutner
460c25b94d Release version 2.4.4 v2.4.4 2016-03-16 09:48:27 +01:00
Gunnar Beutner
8aab74802c Update .mailmap
refs #11328
2016-03-16 09:40:00 +01:00
Michael Friedrich
23295351f3 ITL: Missing documentation for nwc_health "mode" parameter
fixes #11107
2016-03-15 15:44:57 +01:00
Michael Friedrich
ba989f4802 ITL: Add additional http check command parameters for SSL version enforcement
refs #10358
2016-03-15 15:28:10 +01:00
Michael Friedrich
307498e71f DB IDO: Fix user notification type filters
fixes #10766
2016-03-15 14:53:25 +01:00
Michael Friedrich
ed4378e521 Update development docs to use 'thread apply all bt full'
fixes #11385
2016-03-15 13:18:32 +01:00
Gunnar Beutner
c4f9c34e43 Update AUTHORS
refs #11369
2016-03-15 13:17:55 +01:00
Rune Darrud
901618d15b Add uninstall to the chocolatey package
refs #11369
2016-03-15 13:17:10 +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
Jean Flach
397c0ada95 Fix CMake not finding mysql libs on Windows
fixes #11208
2016-03-11 15:59:23 +01:00
Markus Frosch
2d4ccb40d3 Correct API URL example for acknowledge-problem
refs #11328
2016-03-11 15:58:51 +01:00
Michael Friedrich
ee7af887c8 Fix host recovery notifications for warning states
fixes  #10225
2016-03-11 15:58:13 +01:00
Gunnar Beutner
cc562e257c Update AUTHORS
refs #11240
2016-03-11 15:57:43 +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