Commit Graph

1013 Commits

Author SHA1 Message Date
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
Gunnar Beutner 4c7b5f710f Fix crash in ScheduledDowntime::TimerProc
fixes #11352
2016-03-15 13:15:57 +01:00
Michael Friedrich f386920e60 Refactor patch for host recovery notifications
refs #10225
2016-03-15 13:11:01 +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 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
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
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 fc90265332 Ensure that checks are not scheduled for command_endpoint fake hosts
refs #10963
2016-02-23 10:46:18 +01:00
Gunnar Beutner 7985e93ca0 Make sure we're not running command_endpoint-based checks more than once
refs #10963
2016-02-23 10:46:18 +01:00
Adam James 998abbbae7 Fix parsing of YYYY-MM-DD in LegacyTimePeriod::ParseTimeSpec
fixes #11132

Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>
2016-02-23 09:45:34 +01:00
Jean Flach 9bc7f0ad75 Make schedule-downtime default fixed
fixes #10923
2016-02-23 09:43:53 +01:00
Gunnar Beutner b3b2eb856b Make sure the "syncing" attribute is set to false
refs #11083
2016-02-23 09:35:57 +01:00
Michael Friedrich 186b52082a Remove debug output
refs #11014
2016-02-23 09:31:52 +01:00
Michael Friedrich 9dc37c58ea DB IDO: Only update 'next_check' column when manually scheduling a check
Otherwise the changes from #7287 already take care of setting
the proper next check time from inside ProcessCheckResult().

There is no need to use the generic OnNextCheckChanged signal
but instead we're using a new one, locally just for DB IDO.

fixes #11019
2016-02-23 09:25:05 +01:00
Michael Friedrich 9ca7245c18 Properly set the next check time for active and passive checks
fixes #7287
refs #11019
2016-02-23 09:24:57 +01:00
Michael Friedrich ec9caa4517 Fix: Modified attributes do not work for the IcingaApplication object w/ external commands
fixes #10974
2016-02-23 09:23:25 +01:00
Michael Friedrich f5fda9ebf0 Raise a config error for "Checkable" objects in global zones
fixes #10807
2016-02-23 09:20:39 +01:00
Gunnar Beutner c544c686a8 Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
Michael Friedrich 893f0b9853 Fix missing num_hosts_pending in /v1/status/CIB
fixes #10736
2015-12-08 15:45:22 +01:00
Michael Friedrich 6518f78af0 Fix attribute validation for PUT queries
fixes #10601
2015-11-12 10:13:46 +01:00
Gunnar Beutner e3c75faabc Implement support for recursive object locks
fixes #10596
2015-11-11 10:21:30 +01:00
Michael Friedrich f5da37b7df Remove obsolete checks from API actions
refs #10561
2015-11-10 16:13:14 +01:00
Gunnar Beutner 2cc33b7fb3 Don't validate arguments/parameters that aren't strings
refs #10539
2015-11-10 07:59:10 +01:00
Michael Friedrich 1d2606cbfe Add filter targets for remove-{comment,downtime} actions
Drop remove-all-{comments,downtimes}. This is provided
by using host and service filters.

fixes #10561
2015-11-08 14:22:10 +01:00
Michael Friedrich 64c936d387 API Actions: Remove -by-id from actions and require names for comments and downtimes
The documentation is updated as well. Furthermore actions provide
detailed error information in case of an exception.
Includes DB IDO schema updates.

fixes #10512
2015-11-06 17:06:12 +01:00
Gunnar Beutner 09b2b054f5 Don't validate custom attributes that aren't strings
fixes #10539
2015-11-04 19:04:33 +01:00
Michael Friedrich 7589c61b38 Add missing override
refs #10508
refs #10509
2015-11-02 17:36:13 +01:00
Michael Friedrich 43976d3989 Add host.last_state_{up,down} and last_check attribute, hide *_raw attributes
fixes #10508
fixes #10509
2015-11-02 14:10:44 +01:00
Michael Friedrich 439dad5d6a API actions: Check if removal of comments and downtimes was succesful
refs #9080
2015-11-01 16:33:43 +01:00
Gunnar Beutner 15addb4e7c Use the correct zone name for parent_zone when running 'icinga2 node update-config'
fixes #10479
2015-10-29 08:14:55 +01:00
Gunnar Beutner 0013d26425 Build fix for Windows
refs #9777
2015-10-29 08:14:55 +01:00
Gunnar Beutner 050c520b2a Convert Comment/Downtime to config objects
fixes #9777
2015-10-28 17:56:29 +01:00
Jean Flach 2fc042e231 Update API actions and documentation
refs #9080 #9105
2015-10-27 14:15:07 +01:00
Gunnar Beutner dd77863910 Implement Array::ToString and Dictionary::ToString
fixes #10329
2015-10-26 11:05:24 +01:00
Jean Flach be320b2f77 Update API actions
fixes #10180
refs #9080
2015-10-22 11:33:26 +02:00
Gunnar Beutner 4aa0165701 Add getter for endpoint 'connected' attribute
fixes #10394
2015-10-22 10:52:38 +02:00
Gunnar Beutner 3473731034 Remove api.cpp and api.hpp
fixes #10407
2015-10-22 10:26:56 +02:00
Gunnar Beutner fd5d6de52e Improve performance for Livestatus queries
refs #10428
2015-10-22 08:28:40 +02:00
Michael Friedrich 62c3607531 Fix compiler warnings
refs #9078
2015-10-21 15:50:32 +02:00
Michael Friedrich 286538c17e Implement api event streams
Documentation is not yet complete.

refs #9078
2015-10-21 15:34:26 +02:00
Gunnar Beutner d01f09f3ef Hide internal attributes in the API
fixes #10393
2015-10-20 08:25:10 +02:00