Commit Graph

3144 Commits

Author SHA1 Message Date
Gunnar Beutner 7f8a921f53 Fix crash in UnameHelper()
fixes #11714
2016-05-12 11:08:21 +02:00
Gunnar Beutner f2e6694179 Remove unused cluster commands
fixes #11748
2016-05-12 11:08:21 +02:00
Michael Friedrich 83985f97af API: Fix error message with PUT requests for existing objects
fixes #11396
2016-05-12 11:08:21 +02:00
Gunnar Beutner d82db2ae6c Make sure the dependency graph is properly updated when adding and removing objects
fixes #11686
fixes #11374
2016-05-12 11:08:21 +02:00
Michael Friedrich 7c7a4c3a65 Remove commentsand downtimes with reference to deleted checkable objects
Silence the warning message and change the log level to notice as well.

fixes #10717
2016-05-12 11:08:20 +02:00
Michael Friedrich e0d1c2f020 Fix: Expired downtimes are not removed
fixes #11711
2016-05-12 11:08:20 +02:00
Jean Flach 0e70165bc9 Fix external commands comments crashing icinga
Now an exception will be thrown when AddSvcComment or AddHostComment are
run with and empty Author or comment

fixes #11112
2016-05-12 11:08:20 +02:00
Michael Friedrich 418636f7da Fix crash with empty ScheduledDowntime 'ranges' attribute
fixes #11158
2016-05-12 11:08:20 +02:00
Gunnar Beutner 4558488d97 Implement SNI support for the CLI commands
fixes #11651
2016-05-12 11:08:20 +02:00
Gunnar Beutner 70c8bbcf99 Implement support for subjectAltName in SSL certificates
fixes #11556
2016-05-12 11:08:20 +02:00
Gunnar Beutner 597d300e20 Implement validation for the Logger#severity attribute
fixes #11646
2016-05-12 11:08:19 +02:00
Vytenis Darulis 9f3a6b92a2 Try to queue all PROCESS_FILE commands instead of exploding the stack
fixes #10426

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2016-05-12 11:08:19 +02:00
Gunnar Beutner cf34aa80f5 Fix crash in Ido{Mysql,Pgsql}Connection::ExecuteMultipleQueries
fixes #11639
2016-04-21 12:29:20 +02:00
Michael Friedrich d653b48c67 Fix: Failed assertion in IdoPgsqlConnection::FieldToEscapedString
fixes #11635
2016-04-20 18:41:29 +02:00
Gunnar Beutner d4b5ada951 Fix crash in Checkable::ExecuteCheck
fixes #11582
2016-04-20 10:09:38 +02:00
Gunnar Beutner 089002fa21 Fix error message for the EventEngine variable
refs #11522
2016-04-20 10:09:37 +02:00
Gunnar Beutner feb4b97df7 Make the socket event engine configurable
fixes #11522
2016-04-20 10:09:37 +02:00
Gunnar Beutner e1373386fa Only hide navigational attributes which are not config/state
fixes #11567
2016-04-20 10:09:35 +02:00
Gunnar Beutner 159681c390 Fix crash in Downtime::DowntimesExpireTimerHandler
fixes #11534
fixes #11559
2016-04-20 10:09:34 +02:00
Michael Friedrich 1a21293809 Implement support for overriding check command timeout
fixes #9283
2016-04-20 10:09:34 +02:00
Michael Friedrich 5910f2e310 API: Ensure that empty passwords w/ client_cn are properly checked
fixes #11482
2016-04-20 10:09:33 +02:00
Gunnar Beutner 53cb18543c Implement support for upgrading NSIS-based installations
refs #11449
2016-04-20 10:07:51 +02:00
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