Michael Friedrich
8324970ab9
Merge pull request #7809 from Icinga/bugfix/handshake-timeout-7805
...
Close connections w/o sucessful TLS handshakes during 10s
2020-02-07 16:01:30 +01:00
Michael Friedrich
7488d2614b
Merge pull request #7811 from Icinga/bugfix/config-sync-log
...
Cluster config sync: Use a more friendly message when configs are equal and don't need a reload
2020-02-06 14:32:46 +01:00
Michael Friedrich
bf2d6abfad
Merge pull request #7747 from Icinga/bugfix/heartbeat-unauthenticated-7746
...
Don't send event::Heartbeat to unauthenticated peers
2020-02-06 14:32:25 +01:00
Michael Friedrich
f961370e36
ApiEvents: Fix AcknowledgementCleared code quality
2020-02-06 13:03:04 +01:00
Alexander A. Klimov
35c9f2e7b3
Close connections w/o sucessful TLS handshakes during 10s
...
refs #7805
2020-02-05 15:53:56 +01:00
Alexander A. Klimov
0ed0f73d9d
IoEngine#SpawnCoroutine(): remove redundand overload
2020-02-05 15:31:57 +01:00
Michael Friedrich
cdfc6e6f50
Cluster config sync: Use a more friendly message when configs are equal and don't need a reload
...
This also adds an entry to the troubleshooting docs.
2020-02-05 15:31:41 +01:00
Alexander A. Klimov
d98493c90f
IoEngine#SpawnCoroutine(): don't copy parameter
2020-02-05 15:30:03 +01:00
Noah Hilverling
572c912c96
Merge pull request #7804 from Icinga/bugfix/not-overdue-active-checks-disabled-7790
...
Checkable#next_update: ignore re-scheduled #next_check if !#enable_active_checks
2020-01-31 14:17:30 +01:00
Alexander Aleksandrovič Klimov
431e4f64c9
Merge pull request #7794 from Icinga/bugfix/icingadb-fix-last-update
...
IcingaDB: Fix last_update
2020-01-31 12:12:49 +01:00
Alexander A. Klimov
86bbb79869
Checkable#next_update: ignore re-scheduled #next_check if !#enable_active_checks
...
refs #7790
2020-01-31 11:49:47 +01:00
Noah Hilverling
b77bc7b963
IcingaDB: Fix last_update
2020-01-29 14:43:29 +01:00
Michael Friedrich
5812dae55b
Dev: Allow to delay main worker process in order to attach with LLDB
...
Introduce `-DInternal.DebugWorkerDelay=120` and sleep inside `RunWorker()`.
Rationale: With 2.11 we've introduced a real umbrella process where the
main process is spawned as child fork. Running icinga2 in foreground on
a macOS shell with LLDB will now exit, and not follow the child process.
LLDB doesn't support `follow-fork-mode child` like GDB and therefore we
need to:
- Print the child process PID
- Sleep for X seconds to allow the developer to run `lldb -p <PID>`, set breakpoints, etc.
This commit also documents all available debug build enabled internal constants.
2020-01-29 13:21:05 +01:00
Michael Insel
d7dfa6f1df
Terminate windows check processes with UNKNOWN state on timeout
...
On Windows this terminates checks that reached the timeout with the UNKNOWN
state instead the WARNING state.
Co-authored-by: araujorm <araujorm@users.noreply.github.com>
2020-01-27 21:43:01 +01:00
Michael Friedrich
e1939368b2
Merge pull request #7765 from Icinga/bugfix/opentsdb-graphite-reconnect
...
Graphite/OpenTSDB: Ensure that Reconnect failure is detected
2020-01-27 14:32:26 +01:00
Alexander A. Klimov
530d84ae3b
Make ConfigCompiler#m_LexBuffer a String
...
... to reduce malloc()s.
2020-01-21 13:38:59 +01:00
Michael Friedrich
0da46c1d4b
Ensure that log replay files are properly renamed on Windows
...
rename() without _unlink() before doesn't work on Windows.
This commits also adds an error message which was swallowed
previously.
2020-01-20 11:41:43 +01:00
Michael Friedrich
3533ddd010
Graphite/OpenTSDB: Ensure that Reconnect failure is detected
...
fixes #7729
2020-01-18 17:09:09 +01:00
Noah Hilverling
0d28ef5abe
IcingaDB::UpdateState: Check for Redis connection before calling FireAndForgetQuery()
2020-01-17 13:53:05 +01:00
Alexander Aleksandrovič Klimov
f11cccf874
Merge pull request #7760 from Icinga/bugfix/icingadb-manually-rescheduling-a-check-does-not-update-next_update-and-next_check-7707
...
IcingaDB: Fix rescheduling a check not always updating state in Redis
2020-01-16 11:58:28 +01:00
Noah Hilverling
cbe1c181a1
IcingaDB: Fix rescheduling check not always updating state in Redis
...
fixes #7707
2020-01-16 10:51:56 +01:00
Michael Friedrich
8f5375d2bb
Use IoEngine::Spawn wrapper in RedisConnection class
...
This avoids multiple locations for `asio::spawn` calls.
2020-01-16 09:53:24 +01:00
Alexander A. Klimov
3d841d5f64
Don't send event::Heartbeat to unauthenticated peers
...
refs #7746
2020-01-13 11:21:38 +01:00
Eric Lippmann
cb21086d6c
Merge pull request #7737 from Icinga/bugfix/revert-notification-result
...
Revert NotificationResult
2020-01-09 10:06:39 +01:00
Noah Hilverling
6575ce920e
Merge pull request #7721 from Icinga/bugfix/icingadb-pending
...
IcingaDB: suppress state sync until config sync finished
2020-01-08 17:30:22 +01:00
Stuart Henderson
6744b1af54
cope with OS which don't fill in si_pid in siginfo
...
Icinga processes check si_pid on IPC signals to ensure that the signal
comes from an expected process. OpenBSD doesn't currently fill in si_pid
in siginfo (leaving it 0) so signals never pass this check, resulting
in startup failing to complete (the worker doesn't see the umbrella's
signal and vice-versa) - issue #7505 .
Relax the requirement so that either 0 or the wanted pid is accepted.
2020-01-07 22:08:38 +00:00
Noah Hilverling
275ab08303
IcingaDB - Runtime updates: Use one pub/sub channel per config object type
2020-01-07 16:40:29 +01:00
Michael Friedrich
7e1e8b3393
Revert "Add NotificationResult class"
...
This reverts commit 9621fd2e4b
.
2020-01-07 14:26:09 +01:00
Michael Friedrich
3605076f8b
Revert "Add OnNewNotificationResult signal and ProcessNotificationResult handler"
...
This reverts commit ac483f2a8a
.
2020-01-07 14:26:07 +01:00
Michael Friedrich
152709071d
Revert "Implement last_notification_result handling for Notification objects"
...
This reverts commit 1706b297a5
.
2020-01-07 14:21:06 +01:00
Michael Friedrich
d242b41704
Revert "Make NotificationResult available for events: Cluster and Features"
...
This reverts commit 566e59bbfa
.
2020-01-07 14:20:59 +01:00
Michael Friedrich
55e13fd001
Revert "Fix license headers"
...
This reverts commit 48b3d25ce2
.
2020-01-07 14:20:45 +01:00
Alexander A. Klimov
f6f7d9b635
IcingaDB: suppress state sync until config sync finished
2019-12-18 13:41:56 +01:00
Michael Friedrich
387c2c8b79
Merge pull request #7717 from Icinga/bugfix/redisconnection-shared_ptr
...
RedisConnection: replace std::shared_ptr<T> with Shared<T>::Ptr
2019-12-18 13:32:16 +01:00
Michael Friedrich
cbbff6b37d
Merge pull request #7716 from Icinga/bugfix/redisconnection-long-logs
...
RedisConnection: shorten log messages
2019-12-18 13:31:51 +01:00
Alexander A. Klimov
de5b3eb2c7
RedisConnection: replace std::shared_ptr<T> with Shared<T>::Ptr
2019-12-17 12:13:30 +01:00
Alexander A. Klimov
955b612703
RedisConnection: shorten log messages
2019-12-17 11:49:54 +01:00
Alexander A. Klimov
b1cc0cd767
Document RedisConnection
2019-12-17 11:44:00 +01:00
Michael Friedrich
cd44c5371a
Merge pull request #7713 from Icinga/bugfix/coroutine-stack-size-linux
...
Boost Coroutines: Increase the default stack size from 64 to 256KB
2019-12-13 17:30:23 +01:00
Michael Friedrich
f62f2eb25e
Boost Coroutines: Increase the default stack size from 64 to 256KB
...
refs #7532
2019-12-13 17:20:06 +01:00
Alexander A. Klimov
c6ea9bc7fe
IcingaDB: update icinga:nextupdate:* on Checkable#next_check changes
...
refs #7707
2019-12-10 16:11:51 +01:00
Noah Hilverling
77e02031f9
Merge pull request #7690 from Icinga/feature/flapping-acknowledgement-start-time-7689
...
IcingaDB: include consistent IDs, start time and end time in icinga:history:stream:{flapping,acknowledgement}
2019-12-10 14:49:17 +01:00
Noah Hilverling
ee40fedb2a
Merge pull request #7700 from Icinga/bugfix/icingadb-don-t-hash-hashes-7692
...
IcingaDB: don't hash hashes
2019-12-10 13:39:12 +01:00
Alexander A. Klimov
78189d70ef
IcingaDB: don't hash hashes
...
refs #7692
2019-12-10 11:23:05 +01:00
Alexander A. Klimov
d69cb676a7
Introduce IcingaDB#GetObjectIdentifiersWithoutEnv()
...
refs #7692
2019-12-10 11:22:35 +01:00
Alexander A. Klimov
4f68cfd299
IcingaDB: include consistent IDs, start time and end time in icinga:history:stream:{flapping,acknowledgement}
...
refs #7689
2019-12-10 10:44:26 +01:00
Alexander A. Klimov
829d07aefe
Introduce Checkable#acknowledgement_last_change
...
refs #7689
2019-12-10 10:44:23 +01:00
Alexander A. Klimov
98ba1c03d0
Make Checkable#flapping_last_change consistent across nodes
...
refs #7689
2019-12-10 10:11:24 +01:00
Michael Friedrich
f47142cf72
Merge pull request #7686 from Icinga/bugfix/open-connections
...
Fix open connections when agent waits for CA approval
2019-12-09 19:25:13 +01:00
Michael Friedrich
ce1a71cfec
Merge pull request #7695 from Icinga/bugfix/double-ack
...
Refuse acking an already acked checkable
2019-12-09 19:23:41 +01:00
Noah Hilverling
e8f352f4d7
IcingaDB history: Add cancelled_by & removed_by to downtime & comment history
2019-12-09 10:30:52 +01:00
Noah Hilverling
f0b8892e4a
Merge pull request #7676 from Icinga/feature/icingadb-localendpoint-id
...
IcingaDB#GetStats(): add endpoint_id to IcingaApplication
2019-12-06 16:59:36 +01:00
Noah Hilverling
5e23414197
Merge pull request #7699 from Icinga/bugfix/icingadb-hash-arrays-7691
...
Get rid of IcingaDB#CalculateCheckSum*()
2019-12-06 16:37:24 +01:00
Alexander A. Klimov
e109063333
IcingaDB#GetStats(): add endpoint_id to IcingaApplication
2019-12-06 15:52:47 +01:00
Alexander A. Klimov
783586978f
Get rid of IcingaDB#CalculateCheckSumProperties()
...
refs #7691
2019-12-06 11:25:41 +01:00
Alexander A. Klimov
9a678dce8e
Get rid of IcingaDB#CalculateCheckSumVars()
...
refs #7691
2019-12-06 11:24:33 +01:00
Alexander A. Klimov
b5ada44330
Get rid of IcingaDB#CalculateCheckSumMetadata()
...
refs #7691
2019-12-06 11:23:13 +01:00
Michael Friedrich
65ab6b256f
Merge pull request #7696 from Icinga/bugfix/metrics-zero-thresholds
...
Metrics: Always send '0' as value for thresholds
2019-12-06 11:01:35 +01:00
Alexander A. Klimov
c91154a14c
Get rid of IcingaDB#CalculateCheckSumString()
...
refs #7691
2019-12-06 10:54:11 +01:00
Alexander A. Klimov
6fc4efccc7
Get rid of IcingaDB#CalculateCheckSumArray()
...
refs #7691
2019-12-06 10:47:48 +01:00
Alexander Aleksandrovič Klimov
202e90b626
Merge pull request #7693 from Icinga/feature/icingadb-remove-unnecessar-service-host-ids
...
IcingaDB: Remove unnecessary service_/host_ids
2019-12-05 15:04:52 +01:00
Michael Friedrich
ee72791f25
Metrics: Always send '0' as value for thresholds
...
fixes #7666
2019-12-05 13:05:59 +01:00
Alexander A. Klimov
da6a9174d1
Checkable#ClearAcknowledgement(): OnAcknowledgementCleared() at most once
2019-12-05 11:54:33 +01:00
Alexander A. Klimov
798ea54173
Refuse acking an already acked checkable
2019-12-05 11:08:16 +01:00
Noah Hilverling
5b8b777691
IcingaDB: Add timestamp to stats stream
2019-12-05 10:34:41 +01:00
Noah Hilverling
71ef1de964
Merge pull request #7667 from Icinga/feature/icingadb-acks-history
...
IcingaDB: populate icinga:history:stream:acknowledgement
2019-12-05 09:20:36 +01:00
Noah Hilverling
3e832900f6
IcingaDB: Remove unnecessary service_/host_ids
2019-12-05 07:35:05 +01:00
Alexander A. Klimov
04e13e784d
IcingaDB: populate icinga:history:stream:acknowledgement
2019-12-04 15:02:14 +01:00
Noah Hilverling
92e51a3f87
Merge pull request #7684 from Icinga/bugfix/is_handled-host-down-7673
...
IcingaDB: update service state on Host#problem change
2019-12-04 14:43:09 +01:00
Alexander Aleksandrovič Klimov
5d40a71f8b
Merge pull request #7669 from Icinga/feature/icingadb-notification-recipients
...
IcingaDB: Add notification recipients
2019-12-04 11:00:53 +01:00
Noah Hilverling
ea6e937760
IcingaDB: Add notification recipients
2019-12-04 10:10:36 +01:00
Michael Insel
9d55a8264d
Fix open connections when agent waits for CA approval
...
This closes the agent connection when the certificate sign requests
waits for CA approval.
refs #7680
2019-12-03 21:19:39 +01:00
Alexander A. Klimov
5c45c198ff
IcingaDB#SerializeState(): correct Checkable#is_{problem,handled}
...
refs #7673
2019-12-03 17:44:48 +01:00
Alexander A. Klimov
798c56b809
IcingaDB: update service state on Host#problem change
...
refs #7673
2019-12-03 17:37:51 +01:00
Alexander Aleksandrovič Klimov
bb9b70d466
Merge pull request #7685 from Icinga/bugfix/pending-checkable-problem
...
Checkable#GetProblem(): consider PENDING not a problem
2019-12-03 17:27:01 +01:00
Alexander A. Klimov
ea5403a55c
Extend Checkable::OnAcknowledgementCleared by removedBy
2019-12-03 17:00:54 +01:00
Alexander A. Klimov
1931501040
Checkable#GetProblem(): consider PENDING not a problem
2019-12-03 16:56:43 +01:00
Michael Friedrich
4e74eff7a2
Merge pull request #7417 from Icinga/feature/lambda-use
...
DSL: Add support for Lambda Closures ()use(x)=>x and ()use(x)=>{return x}
2019-12-03 16:05:57 +01:00
Noah Hilverling
b84ceccfb7
Merge pull request #7662 from Icinga/feature/icingadb-overdue
...
IcingaDB: populate icinga:nextupdate:*
2019-12-03 15:38:17 +01:00
Michael Friedrich
857e32ad1d
Merge pull request #7681 from syseleven/improve-error-message
...
Improve error message for POST queries
2019-12-03 13:14:23 +01:00
Noah Hilverling
2af6f24fc4
Merge pull request #7678 from Icinga/feature/icingadb-stats-stream
...
IcingaDB#PublishStats(): make icinga:stats a stream
2019-12-03 12:53:40 +01:00
Noah Hilverling
355973d600
Merge pull request #7656 from Icinga/bugfix/icingadb-command-arg-value-null
...
IcingaDB: don't always set icinga:config:*command:{argument,envvar}#value
2019-12-03 12:53:03 +01:00
Alexander A. Klimov
416e1d72bf
IcingaDB#PublishStats(): make icinga:stats a stream
2019-12-03 12:01:13 +01:00
Alexander A. Klimov
c01c22ae76
IcingaDB: don't always set icinga:config:*command:{argument,envvar}#value
2019-12-03 11:57:21 +01:00
Matthias Baur
177c45d787
Improve error message for POST queries
...
If the user does a POST query but forgets to add the
'X-HTTP-Method-Override: GET' HTP header, the error message was
misleading. This changes the error message to a more detailed message
which might give the user a better understanding what the problem
could be.
Fixes #7675 .
2019-12-03 11:39:40 +01:00
Alexander A. Klimov
9be3b60f76
DSL: allow ()use(x)=>x and ()use(x)=>{return x}
2019-12-03 11:19:34 +01:00
Alexander A. Klimov
df7184ad64
IcingaDB: populate icinga:nextupdate:*
2019-12-02 17:21:03 +01:00
Alexander A. Klimov
e391c0e7b5
RedisConnection: introduce extensible priorities
2019-12-02 17:21:00 +01:00
Alexander Aleksandrovič Klimov
d2d48a2120
Merge pull request #7674 from Icinga/feature/icingadb-remove-unused-checksums
...
IcingaDB: Remove unused checksums
2019-12-02 16:38:28 +01:00
Noah Hilverling
1b60419a1b
Merge pull request #7677 from Icinga/bugfix/icingadb-add-ack-comment
...
IcingaDB#SendAddedComment(): suppress ack comments
2019-12-02 16:09:25 +01:00
Alexander A. Klimov
e7aa021bd8
IcingaDB#SendAddedComment(): suppress ack comments
2019-12-02 16:06:11 +01:00
Noah Hilverling
8b6c3bdc92
Merge pull request #7660 from Icinga/bugfix/icingadb-subscription
...
IcingaDB: get rid of icinga:{subscription,event}*
2019-12-02 10:31:53 +01:00
Noah Hilverling
284d131f61
Merge pull request #7653 from Icinga/bugfix/icingadb-expire_time-null
...
IcingaDB: don't always set Comment#expire_time
2019-12-02 10:30:09 +01:00
Noah Hilverling
66eafd6ad2
IcingaDB: Remove unused checksums
2019-12-02 09:28:04 +01:00
Michael Insel
859658ab98
Fix TLS context copies in ApiListener
...
This avoids copying the TLS context in the ApiListener class and removes
the obsolete variable.
This is a follow-up from #7654
2019-11-29 16:03:38 +01:00
Alexander A. Klimov
10c1d0e4c8
IcingaDB: don't always set Comment#expire_time
2019-11-27 15:58:19 +01:00
Noah Hilverling
ce4409d1d2
Merge pull request #7657 from Icinga/feature/icingadb-host_id
...
IcingaDB: always set *#host_id
2019-11-27 14:38:22 +01:00
Noah Hilverling
0652aa0a6f
Merge pull request #7652 from Icinga/bugfix/icingadb-output-null
...
IcingaDB#SendStatusUpdate(): don't always set icinga:history:stream:state#{,long_}output
2019-11-27 14:29:26 +01:00
Alexander A. Klimov
ba6550dc58
IcingaDB: get rid of icinga:{subscription,event}*
2019-11-27 11:42:09 +01:00
Noah Hilverling
473f932483
Merge pull request #7659 from Icinga/bugfix/notification_history-send_time
...
Notification_history: Rename event_time to send_time
2019-11-27 10:44:57 +01:00
Michael Friedrich
aee80d7f24
Merge pull request #7654 from Icinga/bugfix/apilistener-const-sslcontext
...
Fix TLS context not being updated on signed certificate messages on agents
2019-11-27 09:18:16 +01:00
Alexander A. Klimov
0671d19e12
Notification_history: Rename event_time to send_time
2019-11-26 18:13:31 +01:00
Alexander A. Klimov
1bee5425b9
IcingaDB: always set icinga:history:stream:*#host_id
2019-11-26 17:36:14 +01:00
Noah Hilverling
ed1cede0a7
Merge pull request #7646 from Icinga/feature/remove-comment-author
...
/v1/actions/remove-comment: let users specify themselves
2019-11-26 16:07:09 +01:00
Noah Hilverling
8a14f0e6f7
Merge pull request #7643 from Icinga/bugfix/icingadb-recover
...
IcingaDB: handle Redis restarts
2019-11-26 16:05:04 +01:00
Noah Hilverling
6508e880b4
Merge pull request #7655 from Icinga/bugfix/commenttype
...
CommentType: remove unused variants
2019-11-26 15:47:45 +01:00
Noah Hilverling
a98c5e965c
Merge pull request #7645 from Icinga/feature/remove-downtime-author
...
/v1/actions/remove-downtime: let users specify themselves
2019-11-26 15:41:44 +01:00
Alexander A. Klimov
95f13d864f
IcingaDB#SendStatusUpdate(): don't always set icinga:history:stream:state#{,long_}output
2019-11-26 14:28:14 +01:00
Alexander A. Klimov
e522db20b1
RedisConnection#Connect(): don't give up
2019-11-26 14:16:39 +01:00
Alexander A. Klimov
dcfc494d4d
CommentType: remove unused variants
2019-11-26 11:29:04 +01:00
Michael Insel
8431ea52ee
Make SSL context const again
...
Turns out that the switch to the class member variable inside the lambda
expression is sufficient to fix the issue.
2019-11-25 23:42:32 +01:00
Michael Insel
016a6c3f25
Fix ApiListener const SSL context
...
This makes the SSL context in ApiListener::SpawnCoroutine non-const to
address an issue when an agent recieves an signed certificate from the
master and tries to update the SSL context. This also uses the class
member variable which is captured by `this` in the lamda expression.
fixes #7650
2019-11-25 22:21:09 +01:00
Alexander A. Klimov
407d6c0219
IcingaDB#SendStatusUpdate(): avoid CheckResult::Ptr(nullptr)->GetCheckSource()
2019-11-25 17:15:47 +01:00
Alexander A. Klimov
80bf316e7b
/v1/actions/remove-acknowledgement: let users specify themselves
2019-11-21 16:29:26 +01:00
Alexander A. Klimov
d84efecb62
/v1/actions/remove-comment: let users specify themselves
2019-11-21 15:53:40 +01:00
Alexander A. Klimov
a361bf716e
/v1/actions/remove-downtime: let users specify themselves
2019-11-21 15:48:55 +01:00
Alexander A. Klimov
e7ce71095a
IcingaDB: handle Redis restarts
2019-11-21 12:55:01 +01:00
Noah Hilverling
c8935bf14f
IcingaDB: Update Redis port to use Icinga-Redis
2019-11-21 09:59:21 +01:00
Michael Friedrich
1a503b554b
Merge pull request #7357 from Ant1x/feature/opentsdb-tags
...
OpenTsdbWriter - Custom Tag Support
2019-11-15 14:52:49 +01:00
Michael Friedrich
88c1a197b4
Merge pull request #7567 from Icinga/bugfix/apt-dist-upgrade-7558
...
MacroProcessor::ResolveArguments(): skip null argument values
2019-11-15 14:43:33 +01:00
Michael Friedrich
87248f703c
Merge pull request #7632 from Icinga/feature/dsl-get-templates
...
DSL: Add get_template{,s}
2019-11-15 14:42:48 +01:00
Alexander A. Klimov
5c347ef7bd
DSL: introduce x?y:z
2019-11-15 13:38:01 +01:00
Michael Friedrich
b3eb9c6a07
Merge pull request #7439 from Icinga/feature/timeperiod-seconds
...
LegacyTimePeriod: support specifying seconds
2019-11-15 13:02:05 +01:00
Michael Friedrich
b1787883f7
Merge pull request #7535 from tigercomputing/Icinga/feature/config-stage-activate-parameter
...
API /v1/config/stages 'activate' parameter
2019-11-15 12:58:03 +01:00
Michael Friedrich
38080405df
Merge pull request #7528 from Icinga/bugfix/api-put-error-handling
...
API: Handle permission exceptions soon enough, returning 404
2019-11-15 11:53:59 +01:00
Noah Hilverling
b6db34747a
IcingaDB: Remove redundant last_{hard/soft}_state
2019-11-14 10:57:11 +01:00
Noah Hilverling
fa892b613d
Merge pull request #7608 from Icinga/bugfix/icinga-history-stream-downtime
...
IcingaDB: avoid duplicates in icinga:history:stream:downtime
2019-11-12 11:40:45 +01:00
Noah Hilverling
4ea236aa64
IcingaDB: Fix state on unchecked objects
2019-11-11 15:28:16 +01:00
Michael Friedrich
1cda421bad
DSL: Add get_template{,s}
...
Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2019-11-08 11:13:26 +01:00
Alexander A. Klimov
1e2739aed6
IcingaDB::NotificationSentToAllUsersHandler(): copy set once, not N*(1+M) times
2019-11-07 17:23:48 +01:00
Noah Hilverling
42f959874e
IcingaDB: Add user notification history
2019-11-07 15:57:31 +01:00
Alexander A. Klimov
592872a6c3
IcingaDB: avoid duplicates in icinga:history:stream:downtime
2019-11-06 10:41:54 +01:00
Alexander A. Klimov
4e8584ee9e
IcingaDB: correct icinga:history:stream:state#{,last_}soft_state and icinga:history:stream:notification#state for hosts
2019-11-04 16:40:04 +01:00
Alexander A. Klimov
6c7a9eb651
IcingaDB#SendStatusUpdate(): add icinga:history:stream:state#previous_soft_state
2019-11-04 12:59:57 +01:00
Michael Friedrich
9d9804d50a
Styleguide for IcingaDB
2019-11-02 18:01:31 +01:00
Michael Friedrich
631a4ee9fa
Fix header guards
2019-11-02 17:24:34 +01:00
Michael Friedrich
904f2ce7d4
IcingaDB: Silence some developer logging
2019-11-02 15:47:51 +01:00
Michael Friedrich
36d18ed23a
IcingaDB: Log where we are connecting to
2019-11-02 15:47:46 +01:00
Michael Friedrich
9235246985
Fix rebase against master branch
2019-11-02 14:18:20 +01:00
Michael Friedrich
61d9130dd0
Fix Copyright headers
2019-11-02 14:00:24 +01:00
Michael Friedrich
f9b3e88bbb
Fix non-unity builds
2019-11-02 14:00:24 +01:00
Noah Hilverling
b65e5f5547
IcingaDB/Comment: Add is_sticky
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
071a1489aa
PUBLISH to icinga:stats with high priority
...
refs #57
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
67909210a6
RedisConnection: introduce high-priority queue
...
refs #57
2019-11-02 14:00:24 +01:00
Noah Hilverling
91ecfc35cf
Ensure that execution_time never goes below 0
2019-11-02 14:00:24 +01:00
Noah Hilverling
4e43c766ca
Improve CommentHistory
2019-11-02 14:00:24 +01:00
Noah Hilverling
6a7e83a5e6
Improve Downtime & DowntimeHistory
2019-11-02 14:00:24 +01:00
Noah Hilverling
0aa885573d
Fix notification history not setting text if notification is triggered by checkresult
2019-11-02 14:00:24 +01:00
Noah Hilverling
4a43dd1ce6
Rename event_type state to state_change
2019-11-02 14:00:24 +01:00
Noah Hilverling
5eb1c42a28
History: Use same names for event_time and event_type
2019-11-02 14:00:24 +01:00
Alexander Aleksandrovič Klimov
04dfbb07ce
Rename ICINGA2_WITH_REDIS to ICINGA2_WITH_ICINGADB
2019-11-02 14:00:24 +01:00
Alexander Aleksandrovič Klimov
13ab7eb609
Rename redis to icingadb
2019-11-02 14:00:24 +01:00
Alexander Aleksandrovič Klimov
f51454af65
git ls-files -z |xargs -0 perl -pi -e 's/RedisWriter/IcingaDB/g'
2019-11-02 14:00:24 +01:00
Alexander Aleksandrovič Klimov
c7e9997294
RedisWriter#SerializeState(): don't stringify previous_hard_state
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
617a4a2e92
RedisWriter: drop icinga:history:stream:notification#{,long_}output and add #{author,text}
2019-11-02 14:00:24 +01:00
Alexander Aleksandrovič Klimov
badcb5662c
RedisWriter: add icinga:state:stream:*#previous_hard_state
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
746a48e2ca
RedisWriter: add icinga:history:stream:{state,notification}#previous_hard_state
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
4a7a8cb6f8
RedisWriter: add icinga:history:stream:*#endpoint_id
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
8613365f1c
RedisWriter: add icinga:{state:stream:*,history:stream:*:state}#check_source
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
f314489d23
Merge host and service histories
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
e6043e908a
RedisWriter: adjust icinga:history:stream:*:flapping schema
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
0510e0cad0
Replace duration with flexible_duration
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
c89f354a84
Replace is_fixed with is_flexible
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
9d0e402d92
RedisWriter#SendStartedDowntime(): send also a config update
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
747521fa84
RedisWriter#SendStatusUpdate(): handle pending checkable
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
82898b31ae
RedisWriter: fix missing m_Rcon!=null checks
2019-11-02 14:00:24 +01:00
Noah Hilverling
52fb723d91
RedisWriter: Do not split up comments/downtimes into host/service keys
2019-11-02 14:00:24 +01:00
Noah Hilverling
846f327054
RedisWriter: Use TimestampToMilliseconds() instead of multiplying inline
2019-11-02 14:00:24 +01:00
Noah Hilverling
042ed8b9e9
RedisWriter: Add downtime schedule history event
2019-11-02 14:00:24 +01:00
Noah Hilverling
6f0822cbe8
RedisWriter: Use ms instead of seconds for timestamps
2019-11-02 14:00:24 +01:00
Noah Hilverling
5edf3623c5
RedisWriter-History: Add event_id and event_type to history entries
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
fb6d31fcde
RedisWriter: populate icinga:history:stream:*:flapping
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
81873248e1
RedisWriter: populate icinga:history:stream:*:comment
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
6c536c97e8
RedisWriter: populate icinga:history:stream:*:downtime
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
feeae9d518
RedisWriter: populate icinga:history:stream:*:state
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
d0165773d2
RedisWriter: populate icinga:history:stream:*:notification
2019-11-02 14:00:24 +01:00
Noah Hilverling
33bdc8b5c3
RedisWriter: Rename check_period to check_timeperiod
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
21a900cd9d
RedisWriter#SerializeState(): serialize also Checkable#next_update
...
refs #54
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
9a3ab8c547
Adjust IoEngine usage
2019-11-02 14:00:24 +01:00
Noah Hilverling
9f077e8216
RedisWriter: Streamline JSON key names
2019-11-02 14:00:24 +01:00
Noah Hilverling
1566c4f9ac
Fix runtime update of state not being published
2019-11-02 14:00:24 +01:00
Noah Hilverling
07515d4446
Fix RedisWriter not clearing "icinga:config:state:*" keys on initial dump
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
b0cd306b61
RedisWriter#InsertObjectDependencies(): PUBLISH icinga:config:update ... for all dependencies
2019-11-02 14:00:24 +01:00
Noah Hilverling
322f3fbb0d
RedisWriter: Fix state sync prefix
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
fe49141490
RedisWriter#SendStatusUpdate(): ensure valid UTF-8 output
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
d9ff921934
RedisWriter: publish the current config dump state via icinga:dump
...
refs #53
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
1d3109458d
RedisConnection: merge write queues
...
refs #50
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
3b61b3d37a
RedisConnection: log messages
...
refs #50
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
430c769371
RedisConnection: handle errors as expected
...
refs #50
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
06d88477bd
RedisConnection: forward I/O errors to async-ly waiting requestors
...
refs #50
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
fa5c9ac985
RedisConnection: don't read the response before the request has been written
...
refs #50
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
132b2dcb77
Get rid of hiredis
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
a5971df039
RedisConnection: I/O the Redis protocol by itself (PoC)
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
752c5998df
Prefer vector#emplace_back over #push_back
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
e60ca9bca9
RedisWriter#InsertObjectDependencies(): don't change config objects' attributes in-place
...
refs #52
2019-11-02 14:00:24 +01:00
Noah Hilverling
d5d3f3e60c
Remove unused function CollectScalarVars()
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
53d04cc4e8
RedisWriter#RedisGet(): std::move() query
...
refs #49
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
fb98d3edef
RedisConnection#ExecuteQuer{y,ies}(): std::move() queries
...
refs #49
2019-11-02 14:00:24 +01:00
Alexander A. Klimov
bb333b535b
RedisConnection#ExecuteQueries(): fire all queries at once
...
refs #49
2019-11-02 14:00:23 +01:00
Alexander A. Klimov
74eccf60f2
Fix memory leak
2019-11-02 14:00:23 +01:00